diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-24 20:08:50 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-24 20:08:50 +0000 |
commit | a7b0e06d87c77aa07fe9c62085ca8cb68b38ffaa (patch) | |
tree | 56fca5ed516ca4085df64b13616b0718aa080b6e /ltmain.sh | |
parent | 00984411a15dfedd909eeec3bc182d8ca0794be6 (diff) | |
download | linaro-gcc-a7b0e06d87c77aa07fe9c62085ca8cb68b38ffaa.tar.gz linaro-gcc-a7b0e06d87c77aa07fe9c62085ca8cb68b38ffaa.tar.bz2 linaro-gcc-a7b0e06d87c77aa07fe9c62085ca8cb68b38ffaa.zip |
* ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we
keep at least one of build_libtool_libs or build_old_libs set to
yes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39245 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'ltmain.sh')
-rw-r--r-- | ltmain.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ltmain.sh b/ltmain.sh index 554c82a1d95..2bccd110f03 100644 --- a/ltmain.sh +++ b/ltmain.sh @@ -1,7 +1,7 @@ # ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun ltconfig. # -# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Copyright (C) 1996-2000, 2001 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This program is free software; you can redistribute it and/or modify @@ -5006,12 +5006,24 @@ $echo "Try \`$modename --help' for more information about other modes." exit 0 +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no +build_old_libs=yes ### END LIBTOOL TAG CONFIG: disable-shared ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=no +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: |