git: 915dfb48de3e - main - archivers/pxz: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Oct 2021 21:07:12 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=915dfb48de3eb2e3f1da066d3c1857f2035e7ef8 commit 915dfb48de3eb2e3f1da066d3c1857f2035e7ef8 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-10-06 20:52:23 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-10-06 20:52:23 +0000 archivers/pxz: fix build on powerpc cc -o pxz -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE pxz.c -fstack-protector-strong -llzma -DPXZ_BUILD_DATE=\"`date +%Y%m%d`\" -DPXZ_VERSION=\"4.999.9beta\" pxz.c:48:10: fatal error: 'omp.h' file not found --- archivers/pxz/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archivers/pxz/Makefile b/archivers/pxz/Makefile index 0e6a5793ca2a..9988e39bf09b 100644 --- a/archivers/pxz/Makefile +++ b/archivers/pxz/Makefile @@ -25,6 +25,12 @@ MAKE_ENV+= BINDIR=${PREFIX}/bin \ MAKE_ARGS+= CC="${CC}" +.include <bsd.port.options.mk> + +.if ${ARCH} == powerpc +USES+= compiler:gcc-c++11-lib +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pxz