From: Ralf Wildenhues Date: Sat, 12 Jan 2008 13:58:14 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_mode_link): Fix warning X-Git-Tag: release-2-1b~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75620b0cf784910e81f9ab62aad93d8c4f20e7a9;p=thirdparty%2Flibtool.git * 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 --- diff --git a/ChangeLog b/ChangeLog index 0fb0658ae..2869d4dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-12 Ralf Wildenhues + * 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 diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 43e17152f..9b208eefe 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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"