]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Return missing link flags to apxs.in
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 18 May 2001 19:34:48 +0000 (19:34 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 18 May 2001 19:34:48 +0000 (19:34 +0000)
Submitted by: Harrie Hazewinkel <harrie@covalent.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89159 13f79535-47bb-0310-9956-ffa450edef68

support/apxs.in

index c1c91ee07f0981c54038a28db6ed5e17fd4c0fd5..8466386f357247af415c2183244733e033a9314f 100644 (file)
@@ -392,8 +392,22 @@ if ($opt_c) {
     foreach $o (@objs) {
         $lo .= " $o";
     }
+    my ($opt_Wl, $opt_L, $opt_l);
+    foreach $opt_Wl (@opt_W) {
+        if ($CFG_CC !~ m/gcc$/) {
+            $opt .= " $1" if ($opt_Wl =~ m|^\s*l,(.*)$|);
+        } else {
+            $opt .= " -W$opt_Wl";
+        }
+    }
+    foreach $opt_L (@opt_L) {
+        $opt .= " -L$opt_L";
+    }
+    foreach $opt_l (@opt_l) {
+        $opt .= " -l$opt_l";
+    }
 
-    push(@cmds, "libtool --silent --mode=link $CFG_CC $cflags -o $dso_file -rpath $CFG_LIBEXECDIR -module -avoid-version $lo");
+    push(@cmds, "libtool --silent --mode=link $CFG_CC $cflags -o $dso_file -rpath $CFG_LIBEXECDIR -module -avoid-version $opt $lo");
 
     #   execute the commands
     &execute_cmds(@cmds);