diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-12-14 23:51:24 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-12-14 23:57:24 +0100 |
commit | 2bb6cc6e2dae27f2827da52acd8395e334043596 (patch) | |
tree | fb40af39ad7f04ea45b28ae9d61bd1cb50dd7680 | |
parent | 07561db81059e41d234799dca1c7beafb7203eea (diff) | |
download | perl-RPM4-2bb6cc6e2dae27f2827da52acd8395e334043596.tar perl-RPM4-2bb6cc6e2dae27f2827da52acd8395e334043596.tar.gz perl-RPM4-2bb6cc6e2dae27f2827da52acd8395e334043596.tar.bz2 perl-RPM4-2bb6cc6e2dae27f2827da52acd8395e334043596.tar.xz perl-RPM4-2bb6cc6e2dae27f2827da52acd8395e334043596.zip |
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
-rw-r--r-- | RPM4/NEWS | 3 | ||||
-rw-r--r-- | RPM4/src/Makefile.PL | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -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) }, ); |