aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL3
1 files changed, 2 insertions, 1 deletions
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";