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
28 # Establish configure-generated directory structure.
29 BUILD_DIR
=@glibcxx_builddir@
30 SRC_DIR
=@glibcxx_srcdir@
31 PREFIX_DIR
=@glibcxx_prefixdir@
36 INCLUDES
="-I${SRC_DIR}/testsuite/util"
40 INCLUDES
="-nostdinc++ @GLIBCXX_INCLUDES@
41 -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite/util"
45 CXX
=${PREFIX_DIR}/bin
/g
++
50 CXX
=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/xg++ ,'`
59 CXXFLAGS_default
="-D_GLIBCXX_ASSERT -fmessage-length=0"
60 CXXFLAGS_config
="@SECTION_FLAGS@ @EXTRA_CXX_FLAGS@"
61 echo ${CXXFLAGS_default} ${CXXFLAGS_config}
64 CXXFLAGS_vtv
="@VTV_CXXFLAGS@"
65 LDFLAGS_vtv
="@VTV_CXXLINKFLAGS@"
66 echo ${CXXFLAGS_vtv} ${LDFLAGS_vtv}
69 CXXFLAGS_parallel
="-D_GLIBCXX_PARALLEL -fopenmp
70 -B${BUILD_DIR}/../libgomp
71 -I${BUILD_DIR}/../libgomp
72 -L${BUILD_DIR}/../libgomp/.libs -lgomp"
73 echo ${CXXFLAGS_parallel}
76 PCHFLAGS
="@glibcxx_PCHFLAGS@"
80 SECTIONLDFLAGS
="@SECTION_LDFLAGS@ @LIBICONV@"
81 echo ${SECTIONLDFLAGS}