git: 05931c0cc85b - main - math/csdp: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Tue Jun 15 08:42:21 UTC 2021


The branch main has been updated by pkubaj:

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

commit 05931c0cc85b2fdfb03258db121648adf562f0ca
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-15 08:41:15 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-15 08:41:15 +0000

    math/csdp: fix build on powerpc
    
    LLVM on powerpc doesn't have libomp:
    cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include   -c -o op_o.o op_o.c
    op_o.c:15:10: fatal error: 'omp.h' file not found
---
 math/csdp/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/csdp/Makefile b/math/csdp/Makefile
index d6254a763116..9319f4d5b148 100644
--- a/math/csdp/Makefile
+++ b/math/csdp/Makefile
@@ -29,6 +29,12 @@ PLIST_FILES=	bin/complement \
 		bin/rand_graph \
 		bin/theta
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.endif
+
 post-stage:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
 


More information about the dev-commits-ports-main mailing list