]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Allow some static libraries to be used in generating a
authorJacob Meuser <jakemsr@jakemsr.com>
Tue, 3 Aug 2004 14:54:34 +0000 (14:54 +0000)
committerPeter O'Gorman <peter@pogma.com>
Tue, 3 Aug 2004 14:54:34 +0000 (14:54 +0000)
shared library on NetBSD and OpenBSD. match-pattern_regex decides
which are good.

ChangeLog
config/ltmain.in

index cf629b42d33d0c399be380baa116979f9cc6de07..344c88282a26e28195c0d4ec8f2729f62b934b29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-03  Jacob Meuser <jakemsr@jakemsr.com>
+
+       * ltmain.in: Allow some static libraries to be used in generating a
+       shared library on NetBSD and OpenBSD. match-pattern_regex decides
+       which are good.
+
 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
 
        * m4/libtool.m4 [darwin]: Don't use -all_load.
index 1416769fbad67d91dad3996e42dbd71829155803..b4827c8d7dcf07749401c66784068a588a2785ac 100644 (file)
@@ -2412,7 +2412,22 @@ EOF
            case " $dlpreconveniencelibs " in
            *" $lib "*) ;;
            *)
-             if test "$deplibs_check_method" != pass_all; then
+             valid_a_lib=no
+             case $deplibs_check_method in
+               match_pattern*)
+                 set dummy $deplibs_check_method
+                 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+                 if eval $echo \"$deplib\" 2>/dev/null \
+                   | $SED 10q \
+                   | $EGREP "$match_pattern_regex" > /dev/null; then
+                   valid_a_lib=yes
+                 fi
+               ;;
+               pass_all)
+                 valid_a_lib=yes
+               ;;
+             esac
+             if test "$valid_a_lib" != yes; then
                $echo
                $echo "*** Warning: Trying to link with static lib archive $deplib."
                $echo "*** I have the capability to make that library automatically link in when"