mirror of
https://github.com/apache/httpd.git
synced 2025-08-16 17:04:42 +00:00
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
This commit is contained in:
@ -26,7 +26,12 @@ package apxs;
|
|||||||
# are we building in a cross compile environment? If so, destdir contains
|
# are we building in a cross compile environment? If so, destdir contains
|
||||||
# the base directory of the cross compiled environment, otherwise destdir
|
# the base directory of the cross compiled environment, otherwise destdir
|
||||||
# is the empty string.
|
# 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 = ();
|
my %config_vars = ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user