From 47719544a26daa4c83225b9d53b95771d67c2e4b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Nov 2017 17:38:36 +0100 Subject: let rpm version to be known in cpan tester logs in order to investigate some strange compilation failures --- RPM4/src/Makefile.PL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL index 0295f36..fd81e27 100644 --- a/RPM4/src/Makefile.PL +++ b/RPM4/src/Makefile.PL @@ -83,12 +83,14 @@ RPMCONSTTBL $first . $second; } +my $v = $rpmv; +$v =~ s/\./_/g; WriteMakefile( NAME => 'RPM4', VERSION_FROM => '../lib/RPM4.pm', OBJECT => "RPM4.o $obj", INC => "-I$rpmheaderlocation", LIBS => [ $cfg{libs} . " -lrpmsign -lrpmbuild $ldd" ], - CCFLAGS => "$cfg{cflags} -Wall $fl", + CCFLAGS => "$cfg{cflags} -Wall $fl -DRPM$v", depend => { "RPM4.xs" => join(" ", @rpmconstantfiles) }, ); -- cgit v1.2.1