|
 |
d5274d9 |
--- support/configure.pl.orig 2019-03-06 18:55:42.626024657 -0700
|
|
 |
d5274d9 |
+++ support/configure.pl 2019-03-06 18:59:33.784308363 -0700
|
|
 |
d5274d9 |
@@ -997,6 +997,7 @@ int main() {
|
|
 |
9647ad1 |
}
|
|
 |
9647ad1 |
|
|
 |
9647ad1 |
$LDsharedFLAGS=$Config::Config{lddlflags};
|
|
 |
9647ad1 |
+ $LDsharedFLAGS =~ s/ -specs=\S+redhat-hardened-cc1//g;
|
|
 |
9647ad1 |
|
|
 |
9647ad1 |
if ($^O eq "darwin") {
|
|
 |
9647ad1 |
# MacOS magic again: remove multi-architecture options for fat binaries
|
|
 |
d5274d9 |
@@ -1026,6 +1027,8 @@ int main() {
|
|
 |
9647ad1 |
|
|
 |
9647ad1 |
if ($options{callable} ne ".none.") {
|
|
 |
9647ad1 |
$LDcallableFLAGS="$LDsharedFLAGS $Config::Config{ldflags}";
|
|
 |
9647ad1 |
+ $LDcallableFLAGS =~ s/ -specs=\S+redhat-hardened-ld//g;
|
|
 |
9647ad1 |
+ $LDcallableFLAGS =~ s/ -Wl,-z,now//g;
|
|
 |
9647ad1 |
$LDsonameFLAGS = "-Wl,-soname,";
|
|
 |
9647ad1 |
} else {
|
|
 |
9647ad1 |
$LDcallableFLAGS="none";
|
|
 |
d5274d9 |
@@ -1713,11 +1716,16 @@ sub write_perl_specific_configuration_fi
|
|
 |
9647ad1 |
|
|
 |
d5274d9 |
# Xcode 10 deeply hides perl headers at unpredictable locations, it requires a special clang option to find them
|
|
 |
d5274d9 |
my $includePerlCore = defined($XcodeVersion) && v_cmp($XcodeVersion, "10.0") >= 0 && $Config::Config{perlpath} eq "/usr/bin/perl" ? "-iwithsysroot " : "-I";
|
|
 |
9647ad1 |
+ my $GlueFLAGS=$Config::Config{ccflags};
|
|
 |
9647ad1 |
+ $GlueFLAGS =~ s/ -specs=\\S+redhat-hardened-cc1//g;
|
|
 |
9647ad1 |
+ my $PerlFLAGS=$Config::Config{ccdlflags};
|
|
 |
9647ad1 |
+ $PerlFLAGS =~ s/ -specs=\\S+redhat-hardened-ld//g;
|
|
 |
9647ad1 |
+ $PerlFLAGS =~ s/ -Wl,-z,now//g;
|
|
 |
d5274d9 |
|
|
 |
9647ad1 |
print $conf <<"---";
|
|
 |
9647ad1 |
PERL=$Config::Config{perlpath}
|
|
 |
d5274d9 |
-CXXglueFLAGS=$includePerlCore$Config::Config{archlibexp}/CORE $Config::Config{ccflags} -DPerlVersion=$PerlVersion $no_warn
|
|
 |
9647ad1 |
-LIBperlFLAGS=-L$Config::Config{archlib}/CORE -lperl $Config::Config{ccdlflags}
|
|
 |
d5274d9 |
+CXXglueFLAGS=$includePerlCore$Config::Config{archlibexp}/CORE $GlueFLAGS -DPerlVersion=$PerlVersion $no_warn
|
|
 |
9647ad1 |
+LIBperlFLAGS=-L$Config::Config{archlib}/CORE -lperl $PerlFLAGS
|
|
 |
9647ad1 |
ExtUtils=$Config::Config{privlib}/ExtUtils
|
|
 |
9647ad1 |
---
|
|
 |
9647ad1 |
|