|
1 # Stefan Teleman <[email protected]> |
|
2 # We want C99 features in libstdc++, which aren't available in |
|
3 # C++98/C++03 compilation mode. |
|
4 # So, as th original comments already say, enable C++11. This way |
|
5 # we get C99 features. Which is what ws wanted in the first place. |
|
6 # Internal patch. Solaris specific. |
|
7 --- libstdc++-v3/configure 2014-03-20 11:57:07.000000000 -0700 |
|
8 +++ libstdc++-v3/configure 2015-08-04 14:40:26.316783257 -0700 |
|
9 @@ -16549,8 +16549,9 @@ |
|
10 # spuriously enabled. |
|
11 # Long term, -std=c++0x could be even better, could manage to explicitly |
|
12 # request C99 facilities to the underlying C headers. |
|
13 + # Not on Solaris. This breaks C99 for no valid reason. |
|
14 ac_save_CXXFLAGS="$CXXFLAGS" |
|
15 - CXXFLAGS="$CXXFLAGS -std=c++98" |
|
16 + CXXFLAGS="$CXXFLAGS -std=c++11" |
|
17 ac_save_LIBS="$LIBS" |
|
18 ac_save_gcc_no_link="$gcc_no_link" |
|
19 |
|
20 @@ -18709,8 +18710,9 @@ |
|
21 |
|
22 # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__ |
|
23 # undefined and fake C99 facilities may be spuriously enabled. |
|
24 + # Not on Solaris. This breaks C99 for no valid reason. |
|
25 ac_save_CXXFLAGS="$CXXFLAGS" |
|
26 - CXXFLAGS="$CXXFLAGS -std=c++98" |
|
27 + CXXFLAGS="$CXXFLAGS -std=c++11" |
|
28 |
|
29 # Check for the existence of <complex.h> complex math functions used |
|
30 # by tr1/complex. |