aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>1994-11-08 02:16:18 +0000
committerJason Merrill <jason@redhat.com>1994-11-08 02:16:18 +0000
commit45329a2cbd7ae061d2824cfd1d66356e36278ec6 (patch)
tree3c52350db1b27a78f9b9d9e6dda4da8af8bf4290 /configure.in
parent2492f942fca539a86ec9ca554818d67cbca27703 (diff)
downloadgdb-45329a2cbd7ae061d2824cfd1d66356e36278ec6.zip
gdb-45329a2cbd7ae061d2824cfd1d66356e36278ec6.tar.gz
gdb-45329a2cbd7ae061d2824cfd1d66356e36278ec6.tar.bz2
Various changes to support building shared lib{g,stdc}++
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 7fd40e8..dcc98f7 100644
--- a/configure.in
+++ b/configure.in
@@ -153,6 +153,30 @@ case "${host}" in
;;
esac
+# We default to --with-shared on platforms where -fpic is meaningless.
+# Well, we don't yet, but we will.
+if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
+ case "${target}" in
+ alpha-dec-osf*) enable_shared=yes ;;
+ mips-sgi-irix5*) enable_shared=yes ;;
+ *) enable_shared=no ;;
+ esac
+fi
+
+if [ x${enable_shared} = xyes ]; then
+ waugh=
+ case "${host}" in
+ hppa*-*-*) waugh=config/mh-papic ;;
+ i[345]86-*-*) waugh=config/mh-x86pic ;;
+ *-*-*) waugh=config/mh-${target_cpu}pic ;;
+ esac
+ if [ -n "${host_makefile_frag}" ] && [ -f ${srcdir}/${waugh} ]; then
+ cat ${srcdir}/${host_makefile_frag} > mh-frag
+ cat ${srcdir}/${waugh} >> mh-frag
+ host_makefile_frag=mh-frag
+ fi
+fi
+
# per-target:
case "${target}" in
@@ -498,6 +522,14 @@ if [ x${use_gnu_ld} = x ] ; then
fi
fi
+if [ x${enable_shared} = xyes ]; then
+ case "${target}" in
+ hppa*-*-*) target_makefile_frag=config/mt-papic ;;
+ i[345]86-*-*) target_makefile_frag=config/mt-x86pic ;;
+ *-*-*) target_makefile_frag=config/mt-${target_cpu}pic ;;
+ esac
+fi
+
#
# Local Variables:
# fill-column: 131