From 2bb6cc6e2dae27f2827da52acd8395e334043596 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 14 Dec 2020 23:51:24 +0100 Subject: Fix RPM4.xs/libperl.so mismatch on i586 It's OK on aarch64 & on x86_64 but it's broken on i586 eg: $ perl -MRPM4 RPM4.c: loadable library and perl binaries are mismatched (got handshake key 0x9100080, needed 0x9180080) Just build with the flags used to build perl itself in order to fix it --- RPM4/NEWS | 3 +++ RPM4/src/Makefile.PL | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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) }, ); -- cgit v1.2.1