4 # This script computes the various flags needed to run GNU C++ testsuites
5 # (compiler specific as well as library specific).
7 # Written by Benjamin Kosnik <bkoz@redhat.com>
8 # Gabriel Dos Reis <gdr@codesourcery.com>
11 # Print a message saying how this script is intended to be invoked
15 testsuite_flags --install-includes
24 # Establish configure-generated directory structure.
25 BUILD_DIR
=@glibcxx_builddir@
26 SRC_DIR
=@glibcxx_srcdir@
27 PREFIX_DIR
=@glibcxx_prefixdir@
32 INCLUDES
="-I${SRC_DIR}/testsuite"
36 INCLUDES
="-nostdinc++ @GLIBCXX_INCLUDES@
37 -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite"
41 CXX
=${PREFIX_DIR}/bin
/g
++
46 CXX
=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
50 CXXFLAGS_save
="-g -O2 -D_GLIBCXX_ASSERT"
51 CXXFLAGS_config
='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
53 echo ${CXXFLAGS_save} ${CXXFLAGS_config}
56 PCHFLAGS
="@glibcxx_PCHFLAGS@"