diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-11-01 17:38:36 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-11-06 11:20:40 +0100 |
commit | 47719544a26daa4c83225b9d53b95771d67c2e4b (patch) | |
tree | 254ac677fb25a050cbb8d33a963f7c074b2bbe5b /RPM4 | |
parent | 66504834514cdf96f5a366864982f0d2a0267ea2 (diff) | |
download | perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.gz perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.bz2 perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.tar.xz perl-RPM4-47719544a26daa4c83225b9d53b95771d67c2e4b.zip |
let rpm version to be known in cpan tester logs
in order to investigate some strange compilation failures
Diffstat (limited to 'RPM4')
-rw-r--r-- | RPM4/src/Makefile.PL | 4 |
1 files changed, 3 insertions, 1 deletions
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) }, ); |