aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.in
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-05-03 20:35:18 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-05-03 20:35:18 +0000
commitf8e4b51d3666e23172cdaa0367a0a7b18e1707cd (patch)
tree6f8826a0e5a5c6ac93d730f4f934050eec84249b /libstdc++-v3/configure.in
parentca3667c482e67d35e8cf06a69de6303fc376cf1d (diff)
downloadgcc-f8e4b51d3666e23172cdaa0367a0a7b18e1707cd.zip
gcc-f8e4b51d3666e23172cdaa0367a0a7b18e1707cd.tar.gz
gcc-f8e4b51d3666e23172cdaa0367a0a7b18e1707cd.tar.bz2
configure.in (LIBSUPCXX_PICFLAGS): Set it to -prefer-pic or -prefer-non-pic depending on whether libtool has...
* configure.in (LIBSUPCXX_PICFLAGS): Set it to -prefer-pic or -prefer-non-pic depending on whether libtool has shared libraries enabled or disabled. * libsupc++/Makefile.am (LIBSUPCXX_CXXFLAGS): Set to $(LIBSUPCXX_PICFLAGS). * configure, */Makefile.in: Rebuilt. From-SVN: r41806
Diffstat (limited to 'libstdc++-v3/configure.in')
-rw-r--r--libstdc++-v3/configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in
index 838ce93..0201b202a 100644
--- a/libstdc++-v3/configure.in
+++ b/libstdc++-v3/configure.in
@@ -260,6 +260,14 @@ GLIBCPP_EXPORT_INSTALL_INFO
GLIBCPP_EXPORT_INCLUDES
GLIBCPP_EXPORT_FLAGS
+if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
+ grep "enable shared" > /dev/null; then
+ LIBSUPCXX_PICFLAGS=-prefer-pic
+else
+ LIBSUPCXX_PICFLAGS=
+fi
+AC_SUBST(LIBSUPCXX_PICFLAGS)
+
# This should be done by mkincludedir, but hack around it now.
blddir=`pwd`
echo "checking for $blddir/include"