FreeBSD Bugzilla – Attachment 236025 Details for
Bug 265962
lang/gcc*: expose non-default -stdlib=libc++ support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1 (apply via "git am")
bug265962.diff (text/plain), 1.82 KB, created by
Jan Beich
on 2022-08-20 19:13:23 UTC
(
hide
)
Description:
v1 (apply via "git am")
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2022-08-20 19:13:23 UTC
Size:
1.82 KB
patch
obsolete
>From 069b108e0b2462bfcfbbe9404696225e70babef7 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Sat, 20 Aug 2022 16:06:02 +0000 >Subject: [PATCH] lang/gcc11: expose non-default -stdlib=libc++ support > >gcc11: error: unrecognized command-line option '-stdlib=libc++' > >PR: 265962 >Approved by: ? >--- > lang/gcc11/Makefile | 2 ++ > lang/gcc11/files/patch-libcxxrt | 18 ++++++++++++++++++ > 2 files changed, 20 insertions(+) > create mode 100644 lang/gcc11/files/patch-libcxxrt > >diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile >index e4ae2e093d06..70251917e142 100644 >--- a/lang/gcc11/Makefile >+++ b/lang/gcc11/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= gcc > PORTVERSION= 11.3.0 >+PORTREVISION= 1 > CATEGORIES= lang > MASTER_SITES= GCC > PKGNAMESUFFIX= ${SUFFIX} >@@ -90,6 +91,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --enable-gnu-indirect-function \ > --enable-host-shared \ > --enable-plugin \ >+ --with-gxx-libcxx-include-dir=/usr/include/c++/v1 \ > --libdir=${TARGLIB} \ > --libexecdir=${LIBEXEC} \ > --program-suffix=${SUFFIX} \ >diff --git a/lang/gcc11/files/patch-libcxxrt b/lang/gcc11/files/patch-libcxxrt >new file mode 100644 >index 000000000000..22f8413dccc5 >--- /dev/null >+++ b/lang/gcc11/files/patch-libcxxrt >@@ -0,0 +1,18 @@ >+libc++ on FreeBSD always uses PathScale libcxxrt and cannot change to >+LLVM libc++abi without breaking backward compatibility. Besides, mixing >+different C++ ABIs is not supported unless subset via DT_FILTER. >+ >+https://github.com/llvm/llvm-project/commit/35479ffb1251 >+https://github.com/freebsd/freebsd-src/commit/cf56074e5271 >+ >+--- gcc/cp/g++spec.c >++++ gcc/cp/g++spec.c >+@@ -60,7 +60,7 @@ along with GCC; see the file COPYING3. If not see >+ #endif >+ >+ #ifndef LIBCXXABI >+-#define LIBCXXABI "c++abi" >++#define LIBCXXABI "cxxrt" >+ #endif >+ #ifndef LIBCXXABI_PROFILE >+ #define LIBCXXABI_PROFILE LIBCXXABI
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 265962
:
236025
|
236028
|
236029
|
236053