mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Avoid running $(CXX) during build to obtain header file paths
This reduces the build time somewhat and is particularly noticeable during rebuilds with few code changes.
This commit is contained in:
14
configure
vendored
14
configure
vendored
@ -635,6 +635,8 @@ BISON
|
||||
INSTALL_INFO
|
||||
PERL
|
||||
BASH_SHELL
|
||||
CXX_CMATH_HEADER
|
||||
CXX_CSTDLIB_HEADER
|
||||
CXX_SYSINCLUDES
|
||||
SYSINCLUDES
|
||||
AUTOCONF
|
||||
@ -5054,6 +5056,18 @@ fi
|
||||
|
||||
|
||||
|
||||
# Obtain some C++ header file paths. This is used to make a local
|
||||
# copy of those headers in Makerules.
|
||||
if test -n "$CXX"; then
|
||||
find_cxx_header () {
|
||||
echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "/$1:/{s/:\$//;p}"
|
||||
}
|
||||
CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
|
||||
CXX_CMATH_HEADER="$(find_cxx_header cmath)"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Test if LD_LIBRARY_PATH contains the notation for the current directory
|
||||
# since this would lead to problems installing/building glibc.
|
||||
# LD_LIBRARY_PATH contains the current directory if one of the following
|
||||
|
Reference in New Issue
Block a user