]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_ltlibraries): Check for LDFLAGS variables
authorTom Tromey <tromey@redhat.com>
Mon, 18 Dec 2000 01:04:24 +0000 (01:04 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Dec 2000 01:04:24 +0000 (01:04 +0000)
before using values.

ChangeLog
automake.in

index e397310f5d087484672fcc300b640955af1ce041..8baf82e970ece088df412a96a39196f53c81e71a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-12-17  Tom Tromey  <tromey@redhat.com>
 
+       * automake.in (handle_ltlibraries): Check for LDFLAGS variables
+       before using values.
+
        * automake.in (handle_ltlibraries): Allow _LDFLAGS to be
        conditionally defined.  Fixes PR automake/77 and ldflags.test.
 
index 07f53eacdfa884ffa1680c4bb4bb5fce9c9bce1e..14064c39895c6a98477308ee5dc1a9d24f0f196e 100755 (executable)
@@ -2011,9 +2011,12 @@ sub handle_ltlibraries
 
        # Check that the library fits the standard naming convention.
        $libname_rx = "^lib.*\.la";
-       if (grep (/-module/, &variable_value_as_list ($xlib . '_LDFLAGS',
-                                                     'all'))
-           || grep (/-module/, &variable_value_as_list ('LDFLAGS', 'all')))
+       if ((&variable_defined ($xlib . '_LDFLAGS')
+            && grep (/-module/, &variable_value_as_list ($xlib . '_LDFLAGS',
+                                                         'all')))
+           || (&variable_defined ('LDFLAGS')
+               && grep (/-module/, &variable_value_as_list ('LDFLAGS',
+                                                            'all'))))
        {
                # Relax name checking for libtool modules.
                $libname_rx = "\.la";
This page took 0.392651 seconds and 5 git commands to generate.