]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
apxs: fix handling of -Wc/-Wl and "-o mod_foo.so".
authorGraham Leggett <minfrin@apache.org>
Sat, 23 Oct 2004 14:25:25 +0000 (14:25 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 23 Oct 2004 14:25:25 +0000 (14:25 +0000)
PR: 31448
Obtained from:
Submitted by: jorton
Reviewed by: jorton, jerenkrantz, pquerna

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

CHANGES
STATUS
support/apxs.in

diff --git a/CHANGES b/CHANGES
index 16476c41d4b6da2c3c6e23794f3ec1bfb111f914..1e058a498be8873c498081df97ca125e7767c494 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.53
 
+  *) apxs: fix handling of -Wc/-Wl and "-o mod_foo.so". PR 31448
+     [Joe Orton]
+
   *) mod_ldap: Fix format strings to use %APR_PID_T_FMT instead of %d.
      [Jeff Trawick]
  
diff --git a/STATUS b/STATUS
index b089559adaef8eca3d21387838ffc244fc981305..cdf8fe4bb89118e60020f527bdf1495a48adb590 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/10/23 14:11:48 $]
+Last modified at [$Date: 2004/10/23 14:25:24 $]
 
 Release:
 
@@ -103,11 +103,6 @@ PATCHES TO BACKPORT FROM 2.1
        PR 24437
        +1: minfrin
 
-    *) apxs: fix handling of -Wc/-Wl and "-o mod_foo.so".
-         http://cvs.apache.org/viewcvs.cgi/httpd-2.0/support/apxs.in?r1=1.62&r2=1.64
-       PR: 31448
-       +1: jorton, jerenkrantz, pquerna
-
     *) Fix ap_save_brigade's handling of ENOTIMPL setaside functions.
          http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/util_filter.c?r1=1.100&r2=1.101
        PR: 31247
index 7c0970766c20858c8ed14ffc2000a8be569419e6..1a9dac22d8e2f2b6b710ddab6d97bcce5706e32f 100644 (file)
@@ -376,11 +376,12 @@ if ($opt_c) {
             $dso_file =~ s|\.[^.]+$|.la|;
         }
         else {
-            $dso_file = "mod_unknown.so";
+            $dso_file = "mod_unknown.la";
         }
     }
     else {
         $dso_file = $opt_o;
+        $dso_file =~ s|\.[^.]+$|.la|;
     }
 
     #   create compilation commands
@@ -419,12 +420,9 @@ if ($opt_c) {
         $lo .= " $o";
     }
     my ($opt_Wl, $opt_L, $opt_l);
+    $opt = '';
     foreach $opt_Wl (@opt_W) {
-        if ($CFG_CC !~ m/gcc$/) {
-            $opt .= " $1" if ($opt_Wl =~ m|^\s*l,(.*)$|);
-        } else {
-            $opt .= " -W$opt_Wl";
-        }
+        $opt .= "$1 " if ($opt_Wl =~ m|^\s*l,(.*)$|);
     }
     foreach $opt_L (@opt_L) {
         $opt .= " -L$opt_L";