Commits

Shlomi Fish  committed ce57b97

Fix a warning in Makefile.PL

  • Participants
  • Parent commits b149cdc

Comments (0)

Files changed (2)

 Revision history for Perl extension XML::LibXML
 
+2.0009          Thu  1 Nov 16:26:45 IST 2012
     - Fix libxml2 detection in Strawberry Perl.
         - Another Devel::CheckOS fallout.
         - Thanks to KMX for the report and for a proposed fix. The actual fix
             $config{LIBS} .= ' -llibxml2.lib -lzlib.lib';
         }
         else {
+            my $l = $config{LIBS};
+
+            if (!defined($l)) {
+                $l = '';
+            }
+
             # Put several options.
             $config_LIBS_alternatives = [
-                map { "$config{LIBS} $_" }
+                map { "$l $_" }
                 q/ -lxml2 -lzlib/,
                 q/ -llibxml2 -lzlib -llibgettextlib.dll/
             ];
-            $config{LIBS} = $config_LIBS_alternatives->[1];
+            $config{LIBS} = $config_LIBS_alternatives->[-1];
         }
     }
     else {