FreeBSD Bugzilla – Attachment 236027 Details for
Bug 265964
Mk/Uses/compiler.mk: switch to -stdlib=libc++
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1 (apply via "git am")
bug265964.diff (text/plain), 957 bytes, created by
Jan Beich
on 2022-08-20 21:27:03 UTC
(
hide
)
Description:
v1 (apply via "git am")
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2022-08-20 21:27:03 UTC
Size:
957 bytes
patch
obsolete
>From 9320948fc5a2677612c7dee5876e94e9bc949b70 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Sat, 20 Aug 2022 21:08:22 +0000 >Subject: [PATCH] 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 >Approved by: ? >--- > 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265964
: 236027