diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-12-16 05:08:09 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-12-16 05:08:09 +0000 |
commit | 13d07760cf4a1de351663c67fb9e6d20bc71dfb4 (patch) | |
tree | 03ce486f06a039df29b4004586c6ed7537ce3999 /Mk/Uses/compiler.mk | |
parent | Document two CVEs fixed in Atheme 7.2.7 (diff) |
Switch USES=compiler:gcc-c++11-lib to use base libc++ on 10.2+ systems
PR: 215192
Requested by: dim
Exp-run by: antoine
Approved by: antoine
Notes
Notes:
svn path=/head/; revision=428641
Diffstat (limited to 'Mk/Uses/compiler.mk')
-rw-r--r-- | Mk/Uses/compiler.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mk/Uses/compiler.mk b/Mk/Uses/compiler.mk index 94bf2eee52e9..20cd2883e2f4 100644 --- a/Mk/Uses/compiler.mk +++ b/Mk/Uses/compiler.mk @@ -241,9 +241,18 @@ CXX= ${LOCALBASE}/bin/clang++34 USE_GCC= yes CHOSEN_COMPILER_TYPE= gcc .if ${COMPILER_FEATURES:Mlibc++} +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1001508 LDFLAGS+= -L${LOCALBASE}/lib/c++ CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1 BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++ +.else +CXXFLAGS+= -nostdinc++ -isystem /usr/include/c++/v1 +LDFLAGS+= -L${WRKDIR} + +_USES_configure+= 200:gcc-libc++-configure +gcc-libc++-configure: + @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so +.endif # OSVERSION < 1001508 .endif .endif |