]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_mode_link): Fix warning
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 12 Jan 2008 13:58:14 +0000 (13:58 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 12 Jan 2008 13:58:14 +0000 (13:58 +0000)
about -l and -L for archives and objects as output, to not
trigger for *.la files.  Non-convenience archives are diagnosed

ChangeLog
libltdl/config/ltmain.m4sh

index 0fb0658aef4bd432bbf43a2f1add92f67df1dd0f..2869d4dc8b5084ddc8175b5b001de8059e619a3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-01-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/config/ltmain.m4sh (func_mode_link): Fix warning
+       about -l and -L for archives and objects as output, to not
+       trigger for *.la files.  Non-convenience archives are diagnosed
+
        * tests/configure-iface.at: Ensure LTDLINCL is expanded
        before CPPFLAGS, so that even CPPFLAGS=-I/usr/local/include
        won't make the tests prefer an installed ltdl.h over the
index 43e17152f5b8b4a4a4fef0d3ea3222358d1f776c..9b208eefe6ed0abdc443ee6bff07cb4cc714c881 100644 (file)
@@ -5080,9 +5080,10 @@ func_mode_link ()
        func_warning "\`-dlopen' is ignored for archives"
       fi
 
-      test -n "$deplibs" && \
-       func_warning "\`-l' and \`-L' are ignored for archives"
-
+      case " $deplibs" in
+      *\ -l* | *\ -L*)
+       func_warning "\`-l' and \`-L' are ignored for archives" ;;
+      esac
 
       test -n "$rpath" && \
        func_warning "\`-rpath' is ignored for archives"
@@ -6359,8 +6360,10 @@ EOF
        func_warning "\`-dlopen' is ignored for objects"
       fi
 
-      test -n "$deplibs" && \
-       func_warning "\`-l' and \`-L' are ignored for objects"
+      case " $deplibs" in
+      *\ -l* | *\ -L*)
+       func_warning "\`-l' and \`-L' are ignored for objects" ;;
+      esac
 
       test -n "$rpath" && \
        func_warning "\`-rpath' is ignored for objects"