Repository navigation
Expand file tree
/
Copy pathapache-apxs.patch
More file actions
39 lines (37 loc) · 1.63 KB
/
Copy pathapache-apxs.patch
File metadata and controls
39 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff -urNp -x '*.orig' httpd-2.4.46.org/support/apxs.in httpd-2.4.46/support/apxs.in
--- httpd-2.4.46.org/support/apxs.in 2020-03-20 14:00:44.000000000 +0100
+++ httpd-2.4.46/support/apxs.in 2021-06-16 09:20:17.513003551 +0200
@@ -45,6 +45,7 @@ my $CFG_PREFIX = $prefix;
my $exec_prefix = get_vars("exec_prefix");
my $datadir = get_vars("datadir");
my $localstatedir = get_vars("localstatedir");
+my $libdir = get_vars("libdir");
my $CFG_TARGET = get_vars("progname");
my $CFG_SYSCONFDIR = get_vars("sysconfdir");
my $CFG_CFLAGS = join ' ', map { get_vars($_) }
@@ -56,6 +57,7 @@ my $CFG_INCLUDEDIR = eval qq("$includedi
my $CFG_CC = get_vars("CC");
my $libexecdir = $destdir . get_vars("libexecdir");
my $CFG_LIBEXECDIR = eval qq("$libexecdir");
+my $CFG_DESTDIR = '';
my $sbindir = get_vars("sbindir");
my $CFG_SBINDIR = eval qq("$sbindir");
my $ltflags = $ENV{'LTFLAGS'};
@@ -183,7 +185,7 @@ if (@opt_S) {
my ($val) = $2;
my $oldval = eval "\$CFG_$var";
- unless ($var and $oldval) {
+ unless ($var and defined $oldval) {
print STDERR "apxs:Error: no config variable $var\n";
&usage;
}
@@ -512,8 +514,8 @@ if ($opt_i or $opt_e) {
$t =~ s|\.[^./\\]+$|\.so|;
if ($opt_i) {
push(@cmds, $destdir . "$installbuilddir/instdso.sh SH_LIBTOOL='" .
- "$libtool' $f $CFG_LIBEXECDIR");
- push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t");
+ "$libtool' $f $CFG_DESTDIR$CFG_LIBEXECDIR");
+ push(@cmds, "chmod 755 $CFG_DESTDIR$CFG_LIBEXECDIR/$t");
}
# determine module symbolname and filename