From: Jeff Trawick Date: Wed, 5 Dec 2001 03:02:45 +0000 (+0000) Subject: Allow apxs to be used to build DSOs on AIX without requiring the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ed9e9920fa0c0f475fc6946a035a263fea801be;p=apache Allow apxs to be used to build DSOs on AIX without requiring the user to hard-code the list of import files. (This should help on OS/390 and BeOS as well.) Trivial change: just stick the value of SH_LDFLAGS on the libtool --mode=link line. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92327 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 99ab70d76f..a8d536f842 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.30-dev + *) Allow apxs to be used to build DSOs on AIX without requiring the + user to hard-code the list of import files. (This should help + on OS/390 and BeOS as well.) [Jeff Trawick] + *) Resolved segfault in mod_isapi when configuring with ISAPICacheFile. PR 8563, 8919 [William Rowe] diff --git a/support/apxs.in b/support/apxs.in index 2ecb384179..c3e2d2e755 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -108,8 +108,8 @@ my $opt_q = 0; my $opt_h = 0; # this subroutine is derived from Perl's getopts.pl with the enhancement of -# the "+" metacharater at the format string to allow a list to be build by -# subsequent occurance of the same option. +# the "+" metacharacter at the format string to allow a list to be built by +# subsequent occurrences of the same option. sub Getopts { my ($argumentative, @ARGV) = @_; my $errs = 0; @@ -437,6 +437,9 @@ if ($opt_c) { $opt .= " -l$opt_l"; } + # special DSO settings on a few platforms + $opt .= " $config_vars{'SH_LDFLAGS'}"; + push(@cmds, "$prefix/build/libtool --silent --mode=link $CFG_CC -o $dso_file -rpath $CFG_LIBEXECDIR -module -avoid-version $opt $lo"); # execute the commands