diff options
author | peter <peter@FreeBSD.org> | 2008-06-01 00:03:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2008-06-01 00:03:21 +0000 |
commit | a2be5f0c15218b0177d73b17d9bcb7589965d685 (patch) | |
tree | c9f0cd9c22378356a1716d32e13e70bc90f98b9c /libstdc++/scripts/testsuite_flags.in | |
parent | 9e0f3cc19c9df1594c9cc36cfd8fddc83c52ad12 (diff) | |
download | FreeBSD-src-a2be5f0c15218b0177d73b17d9bcb7589965d685.zip FreeBSD-src-a2be5f0c15218b0177d73b17d9bcb7589965d685.tar.gz |
Reorganize the gcc vendor import work area. This flattens out a bunch
of unnecessary path components that are relics of cvs2svn.
(These are directory moves)
Diffstat (limited to 'libstdc++/scripts/testsuite_flags.in')
-rwxr-xr-x | libstdc++/scripts/testsuite_flags.in | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libstdc++/scripts/testsuite_flags.in b/libstdc++/scripts/testsuite_flags.in new file mode 100755 index 0000000..4b841ca --- /dev/null +++ b/libstdc++/scripts/testsuite_flags.in @@ -0,0 +1,69 @@ +#!/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 + --cxxpchflags + --cxxldflags +EOF +} + +# Establish configure-generated directory structure. +BUILD_DIR=@glibcxx_builddir@ +SRC_DIR=@glibcxx_srcdir@ +PREFIX_DIR=@glibcxx_prefixdir@ +query=$1 + +case ${query} in + --install-includes) + INCLUDES="-I${SRC_DIR}/testsuite/util" + echo ${INCLUDES} + ;; + --build-includes) + INCLUDES="-nostdinc++ @GLIBCXX_INCLUDES@ + -I${SRC_DIR}/include/backward -I${SRC_DIR}/testsuite/util" + echo ${INCLUDES} + ;; + --install-cxx) + CXX=${PREFIX_DIR}/bin/g++ + echo ${CXX} + ;; + --build-cxx) + CXX_build="@CXX@" + CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'` + echo ${CXX} + ;; + --cxxflags) + CXXFLAGS_save="-g -O2 -D_GLIBCXX_ASSERT" + CXXFLAGS_config='@SECTION_FLAGS@ -fmessage-length=0 + @CXXFLAGS@ @EXTRA_CXX_FLAGS@ ' + echo ${CXXFLAGS_save} ${CXXFLAGS_config} + ;; + --cxxpchflags) + PCHFLAGS="@glibcxx_PCHFLAGS@" + echo ${PCHFLAGS} + ;; + --cxxldflags) + SECTIONLDFLAGS="@SECTION_LDFLAGS@" + echo ${SECTIONLDFLAGS} + ;; + *) + print_usage + ;; +esac + +exit 0 |