mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Use $CXX not cc1plus to locate C++ headers.
This commit is contained in:
parent
d173d12e77
commit
1e4a95361c
@ -1,5 +1,8 @@
|
||||
2012-10-10 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* configure.in: Run $CXX, not cc1plus, to locate C++ headers.
|
||||
* configure: Regenerated.
|
||||
|
||||
* Makeconfig (+link-static-before-libc): Don't include
|
||||
$(link-static-libc).
|
||||
|
||||
|
5
configure
vendored
5
configure
vendored
@ -5342,10 +5342,9 @@ if test -n "$sysheaders"; then
|
||||
-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
|
||||
if test -n "$CXX"; then
|
||||
CXX_SYSINCLUDES=
|
||||
cxxversion=`$CXX -dumpversion 2>&5` &&
|
||||
cxxmachine=`$CXX -dumpmachine 2>&5` &&
|
||||
cxxplus=`$CXX -print-prog-name=cc1plus`
|
||||
cxxheaders=`$cxxplus -v /dev/null 2>&1 | sed -n '/ \//{p;q;}' | sed 's/ //'`
|
||||
cxxheaders=`$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
|
||||
| sed -n -e '1,/#include/d' -e '/^ \//{p;q;}' | sed 's/ //'`
|
||||
test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
|
||||
CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
|
||||
-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
|
||||
|
@ -973,10 +973,9 @@ if test -n "$sysheaders"; then
|
||||
-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
|
||||
if test -n "$CXX"; then
|
||||
CXX_SYSINCLUDES=
|
||||
cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
|
||||
cxxmachine=`$CXX -dumpmachine 2>&AS_MESSAGE_LOG_FD` &&
|
||||
cxxplus=`$CXX -print-prog-name=cc1plus`
|
||||
cxxheaders=`$cxxplus -v /dev/null 2>&1 | sed -n '/ \//{p;q;}' | sed 's/ //'`
|
||||
cxxheaders=`$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
|
||||
| sed -n -e '1,/#include/d' -e '/^ \//{p;q;}' | sed 's/ //'`
|
||||
test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
|
||||
CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
|
||||
-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
|
||||
|
Loading…
Reference in New Issue
Block a user