Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2024 10:04:51 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dda203686481 - main - math/openblas64: fix build on powerpc64*
Message-ID:  <202407091004.469A4pu1005415@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dda203686481b38724d878011ed7e0c693d19e12

commit dda203686481b38724d878011ed7e0c693d19e12
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-07-08 15:38:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-07-09 10:04:27 +0000

    math/openblas64: fix build on powerpc64*
    
    While here, -lm doesn't seem to be necessary anymore.
---
 math/openblas64/Makefile            |  1 -
 math/openblas64/files/patch-param.h | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/math/openblas64/Makefile b/math/openblas64/Makefile
index 2925783a01a2..1a4972b0fe55 100644
--- a/math/openblas64/Makefile
+++ b/math/openblas64/Makefile
@@ -63,7 +63,6 @@ USE_GCC=		yes
 .endif
 
 .if ${ARCH} == powerpc64le
-CFLAGS+=		-lm
 USE_GCC=		yes
 .endif
 
diff --git a/math/openblas64/files/patch-param.h b/math/openblas64/files/patch-param.h
new file mode 100644
index 000000000000..0362153e41f1
--- /dev/null
+++ b/math/openblas64/files/patch-param.h
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407091004.469A4pu1005415>