git: b00b217c0a95 - main - Mk/Uses/compiler.mk: switch to -stdlib=libc++
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Aug 2022 21:35:53 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=b00b217c0a952c904f8d7db405715f0dd6d1bfdb commit b00b217c0a952c904f8d7db405715f0dd6d1bfdb Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2022-08-20 21:08:22 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-08-25 21:35:38 +0000 Mk/Uses/compiler.mk: switch to -stdlib=libc++ GCC >= 11 supports -stdlib=libc++ (like Clang) which allows to simplify USES=compiler:gcc-c++11-lib logic. PR: 265964 Exp-run by: antoine --- Mk/Uses/compiler.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Mk/Uses/compiler.mk b/Mk/Uses/compiler.mk index c684f4f0800a..e8191c822942 100644 --- a/Mk/Uses/compiler.mk +++ b/Mk/Uses/compiler.mk @@ -187,12 +187,7 @@ CHOSEN_COMPILER_TYPE= clang USE_GCC= yes CHOSEN_COMPILER_TYPE= gcc . if ${COMPILER_FEATURES:Mlibc++} -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 +CXXFLAGS+= -stdlib=libc++ . endif . endif