git: db8307281286 - main - math/openblas: fix build on powerpc64le

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 16 Jan 2024 14:35:32 UTC
The branch main has been updated by pkubaj:

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

commit db83072812864aae7d7ae2354a4e1d9ec93fb179
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-01-13 20:08:32 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-01-16 14:35:23 +0000

    math/openblas: fix build on powerpc64le
    
    /usr/local/bin/ld: ../libopenblasp-r0.3.25.a(dnrm2_k_POWER8.o): undefined reference to symbol 'sqrt@@FBSD_1.0'
---
 math/openblas/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/math/openblas/Makefile b/math/openblas/Makefile
index 2e16efdb506e..cf23f359fa20 100644
--- a/math/openblas/Makefile
+++ b/math/openblas/Makefile
@@ -80,6 +80,7 @@ TARGET_CPU_ARCH=	PPCG4
 .endif
 
 .if ${ARCH} == powerpc64le
+CFLAGS+=		-lm
 USE_GCC=		yes
 .endif