svn commit: r410473 - head/devel/libconcurrent
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sun Mar 6 18:19:43 UTC 2016
Author: rakuco
Date: Sun Mar 6 18:19:41 2016
New Revision: 410473
URL: https://svnweb.freebsd.org/changeset/ports/410473
Log:
Fix the build on FreeBSD 9.
Remove some wrong assignments that force cc as the C compiler on FreeBSD; the
port passes -std=c11 to the compiler and thus we need a compiler that's not
always cc.
PR: 207749
Submitted by: Tobias Kortkamp <t at tobik.me> (maintainer)
Modified:
head/devel/libconcurrent/Makefile
Modified: head/devel/libconcurrent/Makefile
==============================================================================
--- head/devel/libconcurrent/Makefile Sun Mar 6 18:10:39 2016 (r410472)
+++ head/devel/libconcurrent/Makefile Sun Mar 6 18:19:41 2016 (r410473)
@@ -3,6 +3,7 @@
PORTNAME= libconcurrent
PORTVERSION= 0.0.20160303
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= t at tobik.me
@@ -25,9 +26,14 @@ OPTIONS_DEFAULT= EXAMPLES
MAKEFILE= makefile
MAKE_ARGS= LIBCONCURRENT_DESTDIR=${STAGEDIR}${PREFIX}
-USES= gmake
+USES= gmake compiler:c11
post-patch:
+# Remove explicitly (re-)set C compiler and linker in libconcurrent's
+# makefile. The ports system will provide the correct ones. This is
+# needed on FreeBSD 9 where cc does not understand -std=c11.
+ @${REINPLACE_CMD} 's/CC=cc//g' ${WRKSRC}/makefile
+ @${REINPLACE_CMD} 's/LD=ld//g' ${WRKSRC}/makefile
# libconcurrent's makefile resets ${ARCH} internally and the ports
# system interferes with that for some reason, so replace it with a
# more neutral variant.
More information about the svn-ports-all
mailing list