From: Graham Leggett Date: Sat, 23 Oct 2004 14:25:25 +0000 (+0000) Subject: apxs: fix handling of -Wc/-Wl and "-o mod_foo.so". X-Git-Tag: 2.0.53~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10d044ce954820035369c1a0db0700f2020062d9;p=thirdparty%2Fapache%2Fhttpd.git apxs: fix handling of -Wc/-Wl and "-o mod_foo.so". 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 --- diff --git a/CHANGES b/CHANGES index 16476c41d4b..1e058a498be 100644 --- 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 b089559adae..cdf8fe4bb89 100644 --- 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 diff --git a/support/apxs.in b/support/apxs.in index 7c0970766c2..1a9dac22d8e 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -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";