aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-06-19 10:20:40 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-06-19 15:53:14 +0200
commit4d152a6a01df17201efa457a1477a1ea0866899d (patch)
treec4255053ce4fe39597beaac9466d95edcb255816
parenta58cf629be7e0d0512d6e1fd95c5004fb833c8c3 (diff)
downloadperl-URPM-4d152a6a01df17201efa457a1477a1ea0866899d.tar
perl-URPM-4d152a6a01df17201efa457a1477a1ea0866899d.tar.gz
perl-URPM-4d152a6a01df17201efa457a1477a1ea0866899d.tar.bz2
perl-URPM-4d152a6a01df17201efa457a1477a1ea0866899d.tar.xz
perl-URPM-4d152a6a01df17201efa457a1477a1ea0866899d.zip
Build with the flags used to build perl itsefl
This is needed in order to fix build for armv7hl on aarch64
-rw-r--r--Changes2
-rw-r--r--Makefile.PL3
2 files changed, 4 insertions, 1 deletions
diff --git a/Changes b/Changes
index 3650016..0dd3c40 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+- Build with the flags used to build perl itsefl
+
Version 5.122 - 3 June 2020
- handle RPM version with "beta" or "rc" in it
diff --git a/Makefile.PL b/Makefile.PL
index 0ce1e29..7a43831 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,4 +1,5 @@
use strict;
+use Config;
use ExtUtils::MakeMaker;
use ExtUtils::PkgConfig;
@@ -68,7 +69,7 @@ if (-e '/etc/mageia-release' && $cfg{modversion} =~ /4\.(11|9)\./) {
if (! -e '/etc/mageia-release' && -e '/etc/redhat-release' && $cfg{modversion} =~ /4.11/) {
$workaround = '-DPATCHED_RH';
}
-my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', $cfg{cflags}, "-DRPM_VERSON=$cfg{modversion}", $workaround);
+my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', $Config{ccflags}, $cfg{cflags}, "-DRPM_VERSON=$cfg{modversion}", $workaround);
print "Found RPM version $cfg{modversion} (compiling with flags: $ccflags)\n";