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
25 # Establish configure-generated directory structure.
26 BUILD_DIR=@glibcxx_builddir@
27 SRC_DIR=@glibcxx_srcdir@
28 PREFIX_DIR=@glibcxx_prefixdir@
33 INCLUDES="-I${SRC_DIR}/testsuite/util"
37 INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@
38 -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite/util"
42 CXX=${PREFIX_DIR}/bin/g++
47 CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
51 CXXFLAGS_save="-g -O2 -D_GLIBCXX_ASSERT"
52 CXXFLAGS_config='@SECTION_FLAGS@ -fmessage-length=0
53 @CXXFLAGS@ @EXTRA_CXX_FLAGS@ '
54 echo ${CXXFLAGS_save} ${CXXFLAGS_config}
57 PCHFLAGS="@glibcxx_PCHFLAGS@"
61 SECTIONLDFLAGS="@SECTION_LDFLAGS@"
62 echo ${SECTIONLDFLAGS}