1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

math/openblas64: fix build on powerpc64*

While here, -lm doesn't seem to be necessary anymore.
This commit is contained in:
Piotr Kubaj 2024-07-08 17:38:30 +02:00
parent 124ca49027
commit dda2036864
2 changed files with 11 additions and 1 deletions

View File

@ -63,7 +63,6 @@ USE_GCC= yes
.endif
.if ${ARCH} == powerpc64le
CFLAGS+= -lm
USE_GCC= yes
.endif

View File

@ -0,0 +1,11 @@
--- param.h.orig 2024-06-23 08:32:52 UTC
+++ param.h
@@ -2553,7 +2553,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILI
#endif
-#if defined(POWER9) && defined(OS_LINUX)
+#if defined(POWER9) && (defined(OS_LINUX) || defined(OS_FREEBSD))
#define SNUMOPT 16
#define DNUMOPT 8