mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 13:49:30 +08:00
2d25bf5d52
2001-09-05 Phil Edwards <pme@sources.redhat.com> * testsuite_flags.in: No longer need to search testsuite builddir. * src/stl-inst.cc (__sink_unused_warning): Unused, remove. * Makefile.am: The testsuite directory never needs to be made here. * Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libio/Makefile.in: Regenerate. * libmath/Makefile.in: Regenerate. * libsupc++/Makefile.in: Regenerate. * po/Makefile.in: Regenerate. * src/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. From-SVN: r45426
61 lines
1.3 KiB
Bash
Executable File
61 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# This script computes the various flags needed to run GNU C++ testsuites
|
|
# (compiler specific as well as library specific).
|
|
#
|
|
# Written by Benjamin Kosnik <bkoz@redhat.com>
|
|
# Gabriel Dos Reis <gdr@codesourcery.com>
|
|
#
|
|
|
|
# Print a message saying how this script is intended to be invoked
|
|
print_usage() {
|
|
cat <<EOF
|
|
Usage:
|
|
testsuite_flags --install-includes
|
|
--build-includes
|
|
--build-cxx
|
|
--install-cxx
|
|
--cxxflags
|
|
EOF
|
|
}
|
|
|
|
# Establish configure-generated directory structure.
|
|
BUILD_DIR=@glibcpp_builddir@
|
|
SRC_DIR=@glibcpp_srcdir@
|
|
PREFIX_DIR=@glibcpp_prefixdir@
|
|
query=$1
|
|
|
|
case ${query} in
|
|
--install-includes)
|
|
INCLUDES="-I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--build-includes)
|
|
INCLUDES="-nostdinc++ @GLIBCPP_INCLUDES@
|
|
-I${SRC_DIR}/libsupc++ -I${SRC_DIR}/libio
|
|
-I${SRC_DIR}/include/backward
|
|
-I${SRC_DIR}/testsuite"
|
|
echo ${INCLUDES}
|
|
;;
|
|
--install-cxx)
|
|
CXX=${PREFIX_DIR}/bin/g++
|
|
echo ${CXX}
|
|
;;
|
|
--build-cxx)
|
|
CC_build="@glibcpp_CXX@"
|
|
CXX=`echo $CC_build | sed 's/xgcc/g++/g'`
|
|
echo ${CXX}
|
|
;;
|
|
--cxxflags)
|
|
CXXFLAGS=' -g @SECTION_FLAGS@ @SECTION_LDFLAGS@
|
|
-DDEBUG_ASSERT -DLOCALEDIR="@glibcpp_localedir@" '
|
|
echo ${CXXFLAGS}
|
|
;;
|
|
*)
|
|
print_usage
|
|
;;
|
|
esac
|
|
|
|
exit 0
|