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
26 # Establish configure-generated directory structure.
27 BUILD_DIR
=@glibcxx_builddir@
28 SRC_DIR
=@glibcxx_srcdir@
29 PREFIX_DIR
=@glibcxx_prefixdir@
34 INCLUDES
="-I${SRC_DIR}/testsuite/util"
38 INCLUDES
="-nostdinc++ @GLIBCXX_INCLUDES@
39 -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite/util"
43 CXX
=${PREFIX_DIR}/bin
/g
++
48 CXX
=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
57 CXXFLAGS_default
="-g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0"
58 CXXFLAGS_config
="@SECTION_FLAGS@ @CXXFLAGS@ @EXTRA_CXX_FLAGS@"
59 echo ${CXXFLAGS_default} ${CXXFLAGS_config}
62 CXXFLAGS_parallel
="-D_GLIBCXX_PARALLEL -fopenmp
63 -B${BUILD_DIR}/../libgomp
64 -I${BUILD_DIR}/../libgomp
65 -L${BUILD_DIR}/../libgomp/.libs -lgomp"
66 echo ${CXXFLAGS_parallel}
69 PCHFLAGS
="@glibcxx_PCHFLAGS@"
73 SECTIONLDFLAGS
="@SECTION_LDFLAGS@ @LIBICONV@"
74 echo ${SECTIONLDFLAGS}