summaryrefslogtreecommitdiff
path: root/support/apxs.in
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2003-01-23 11:54:44 +0000
committerJeff Trawick <trawick@apache.org>2003-01-23 11:54:44 +0000
commit78432421817c72e451c5d750be0df27c975b98b8 (patch)
tree2dcaede7f5fa112fea17275c179107be0078721c /support/apxs.in
parent3b060bce5f52d91dd753f134e75e9f174602dadd (diff)
downloadhttpd-78432421817c72e451c5d750be0df27c975b98b8.tar.gz
apxs: Include any special APR ld flags when linking the DSO.
This resolves problems on AIX when building a DSO with apxs+gcc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98469 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/apxs.in')
-rw-r--r--support/apxs.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/support/apxs.in b/support/apxs.in
index 4879de7ac3..0fc14e456b 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -449,14 +449,16 @@ if ($opt_c) {
$opt .= " -l$opt_l";
}
+ my $apr_bindir = get_vars("APR_BINDIR");
+
+ if (! -x "$apr_bindir/apr-config") {
+ error("$apr_bindir/apr-config not found!");
+ exit(1);
+ }
+
if ($opt_p == 1) {
- my $apr_bindir = get_vars("APR_BINDIR");
my $apu_bindir = get_vars("APU_BINDIR");
- if (! -x "$apr_bindir/apr-config") {
- error("$apr_bindir/apr-config not found!");
- exit(1);
- }
if (! -x "$apu_bindir/apu-config") {
error("$apu_bindir/apu-config not found!");
exit(1);
@@ -470,7 +472,9 @@ if ($opt_c) {
$opt .= " ".$apu_libs." ".$apr_libs;
}
else {
- $opt .= " -rpath $CFG_LIBEXECDIR -module -avoid-version";
+ my $apr_ldflags=`$apr_bindir/apr-config --ldflags`;
+ chomp($apr_ldflags);
+ $opt .= " -rpath $CFG_LIBEXECDIR -module -avoid-version $apr_ldflags";
}
push(@cmds, "$installbuilddir/libtool $ltflags --mode=link $CFG_CC -o $dso_file $opt $lo");