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
23 # Establish configure-generated directory structure.
24 BUILD_DIR
=@glibcpp_builddir@
25 SRC_DIR
=@glibcpp_srcdir@
26 PREFIX_DIR
=@glibcpp_prefixdir@
31 INCLUDES
="-I${SRC_DIR}/testsuite"
35 INCLUDES
="-nostdinc++ @GLIBCPP_INCLUDES@
36 -I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
37 -I${SRC_DIR}/include/backward
38 -I${SRC_DIR}/testsuite"
42 CXX
=${PREFIX_DIR}/bin
/g
++
46 PCHFLAGS
="-include bits/stdc++.h"
47 CXX_build
="@glibcpp_CXX@ ${PCHFLAGS}"
48 CXX
=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'`
52 CXXFLAGS_save
="-g -O2"
53 CXXFLAGS_config
='@SECTION_FLAGS@ @SECTION_LDFLAGS@ -fmessage-length=0
54 @EXTRA_CXX_FLAGS@ -DLOCALEDIR="@glibcpp_localedir@" '
55 echo ${CXXFLAGS_save} ${CXXFLAGS_config}