diff options
author | Eric Covener <covener@apache.org> | 2020-03-19 16:50:18 +0100 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2020-03-19 16:50:18 +0100 |
commit | 2e40c1b25b5640573024cdbc1047919ce2bf915a (patch) | |
tree | 295b6c85db319126a0b774e339286563886fe83f | |
parent | * modules/ssl/ssl_util_stapling.c (stapling_check_response) Don't send (diff) | |
download | apache2-2e40c1b25b5640573024cdbc1047919ce2bf915a.tar.xz apache2-2e40c1b25b5640573024cdbc1047919ce2bf915a.zip |
fix apxs for non-destdir builds
subtr(...,0, -1) chops off a character and leaves relative path.
(you will need to re-run configure)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875429 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | support/apxs.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/support/apxs.in b/support/apxs.in index f7110978e6..b2705faf5b 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -26,7 +26,12 @@ package apxs; # are we building in a cross compile environment? If so, destdir contains # the base directory of the cross compiled environment, otherwise destdir # is the empty string. -my $destdir = substr($0, 0, rindex($0, "@exp_bindir@")); + +my $destdir = ""; +my $ddi = rindex($0, "@exp_bindir@"); +if ($ddi >= 0) { + $destdir = substr($0, 0, $ddi); +} my %config_vars = (); |