Skip to content

Commit

Permalink
math/csdp: fix build on powerpc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pkubaj committed Jun 15, 2021
1 parent c5e96ec commit 05931c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions math/csdp/Makefile
Expand Up @@ -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/*

Expand Down

0 comments on commit 05931c0

Please sign in to comment.