summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RPM4/NEWS3
-rw-r--r--RPM4/src/Makefile.PL3
2 files changed, 5 insertions, 1 deletions
diff --git a/RPM4/NEWS b/RPM4/NEWS
index b37f22c..42370f3 100644
--- a/RPM4/NEWS
+++ b/RPM4/NEWS
@@ -1,3 +1,6 @@
+- Fix RPM4.xs/libperl.so mismatch on i586 by building with the flags used to
+ build perl itself
+
Version 0.43 - 3 June 2020
- handle RPM version with "beta" or "rc" in it
diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL
index 0f0d73c..f5f0440 100644
--- a/RPM4/src/Makefile.PL
+++ b/RPM4/src/Makefile.PL
@@ -1,6 +1,7 @@
# $Id$
# use 5.008;
+use Config;
use ExtUtils::MakeMaker;
use ExtUtils::PkgConfig;
use Getopt::Long;
@@ -100,6 +101,6 @@ WriteMakefile(
OBJECT => "RPM4.o $obj",
INC => "-I$rpmheaderlocation",
LIBS => [ $cfg{libs} . " -lrpmsign -lrpmbuild $ldd" ],
- CCFLAGS => "$cfg{cflags} -Wall $fl -DRPM$v",
+ CCFLAGS => "$cfg{cflags} -Wall $fl -DRPM$v $Config{ccflags}",
depend => { "RPM4.xs" => join(" ", @rpmconstantfiles) },
);