Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/freebsd-gcc12: Use -stdlib=libc++ to use libc++.
Instead of overriding the path and library name of libstdc++, set the path for libc++ and change the default of -stdlib= from libstdc++ to libc++.
- Loading branch information
Showing
4 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- gcc/c-family/c.opt.orig 2023-07-01 21:56:03 UTC | ||
+++ gcc/c-family/c.opt | ||
@@ -2464,7 +2464,7 @@ stdlib= | ||
Conform to the ISO 2017 C standard (published in 2018). | ||
|
||
stdlib= | ||
-Driver C++ ObjC++ Common Condition(ENABLE_STDLIB_OPTION) Var(flag_stdlib_kind) Joined Enum(stdlib_kind) RejectNegative Init(1) | ||
+Driver C++ ObjC++ Common Condition(ENABLE_STDLIB_OPTION) Var(flag_stdlib_kind) Joined Enum(stdlib_kind) RejectNegative Init(2) | ||
-stdlib=[libstdc++|libc++] The standard library to be used for C++ headers | ||
and runtime. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- gcc/cp/g++spec.cc.orig 2023-05-08 12:14:39 UTC | ||
+++ gcc/cp/g++spec.cc | ||
@@ -95,7 +95,7 @@ lang_specific_driver (struct cl_decoded_option **in_de | ||
int library = 0; | ||
|
||
/* Which c++ runtime library to link. */ | ||
- stdcxxlib_kind which_library = USE_LIBSTDCXX; | ||
+ stdcxxlib_kind which_library = USE_LIBCXX; | ||
|
||
/* The number of arguments being added to what's in argv, other than | ||
libraries. We use this to track the number of times we've inserted |