From: Tom Tromey Date: Sun, 17 Dec 2000 21:33:24 +0000 (+0000) Subject: * automake.in (handle_ltlibraries): Allow _LDFLAGS to be X-Git-Tag: Release-1-4b~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af1e88ef2c32e44fbe77f6d1266aecf8c283c24;p=thirdparty%2Fautomake.git * automake.in (handle_ltlibraries): Allow _LDFLAGS to be conditionally defined. Fixes PR automake/77 and ldflags.test. --- diff --git a/ChangeLog b/ChangeLog index 5ff7a2462..e397310f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-17 Tom Tromey + + * automake.in (handle_ltlibraries): Allow _LDFLAGS to be + conditionally defined. Fixes PR automake/77 and ldflags.test. + 2000-11-25 Tom Tromey * automake.in (file_contents_with_transform): Added file name and diff --git a/automake.in b/automake.in index 8dc817268..07f53eacd 100755 --- a/automake.in +++ b/automake.in @@ -2011,8 +2011,9 @@ sub handle_ltlibraries # Check that the library fits the standard naming convention. $libname_rx = "^lib.*\.la"; - if (&variable_value ($xlib . '_LDFLAGS') =~ /-module/ - || &variable_value ('LDFLAGS') =~ /-module/) + if (grep (/-module/, &variable_value_as_list ($xlib . '_LDFLAGS', + 'all')) + || grep (/-module/, &variable_value_as_list ('LDFLAGS', 'all'))) { # Relax name checking for libtool modules. $libname_rx = "\.la";