]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: When dropping dependencies of a -no-undefined
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Tue, 6 Mar 2001 11:16:27 +0000 (11:16 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 6 Mar 2001 11:16:27 +0000 (11:16 +0000)
library, give up on building a shared library.

ChangeLog
ltmain.in

index f1d1f5acc021f53ecc00dedefe9c0876ef82e6e7..18b62e73b82215f8f2e269702443600ea0ca39cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * ltmain.in: When dropping dependencies of a -no-undefined
+       library, give up on building a shared library.
+
 2001-03-03  Markus F.X.J. Oberhumer <markus@oberhumer.com>,
            Alexandre Oliva <oliva@lsd.ic.unicamp.br>
 
index 6b6df770fe10a48700a70f9ee37e5bc7663d6c7a..bbf48211359f8b908360fb6f845baf1d447d0259 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1,7 +1,8 @@
 # ltmain.sh - Provide generalized library-building support services.
 # NOTE: Changing this file will not affect anything until you rerun ltconfig.
 #
-# Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 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
@@ -2031,6 +2032,21 @@ EOF
            echo "*** The inter-library dependencies that have been dropped here will be"
            echo "*** automatically added whenever a program is linked with this library"
            echo "*** or is declared to -dlopen it."
+
+           if test $allow_undefined = no; then
+             echo
+             echo "*** Since this library must not contain undefined symbols,"
+             echo "*** because either the platform does not support them or"
+             echo "*** it was explicitly requested with -no-undefined,"
+             echo "*** libtool will only create a static version of it."
+             if test "$build_old_libs" = no; then
+               oldlibs="$output_objdir/$libname.$libext"
+               build_libtool_libs=module
+               build_old_libs=yes
+             else
+               build_libtool_libs=no
+             fi
+           fi
          fi
        fi
        # Done checking deplibs!