summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-04-29 10:20:04 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-04-29 10:44:48 +0200
commit530c37ba0a008147ca471921cc69b058e4b8a12b (patch)
treeeeaf33c1ed5e3f7b6ac846af2c69fd68c665a273
parent45a5a10092da7f2f0966505c816a3c0660306364 (diff)
downloadperl-RPM4-530c37ba0a008147ca471921cc69b058e4b8a12b.tar
perl-RPM4-530c37ba0a008147ca471921cc69b058e4b8a12b.tar.gz
perl-RPM4-530c37ba0a008147ca471921cc69b058e4b8a12b.tar.bz2
perl-RPM4-530c37ba0a008147ca471921cc69b058e4b8a12b.tar.xz
perl-RPM4-530c37ba0a008147ca471921cc69b058e4b8a12b.zip
Show rpm version in cflags in order to have more data from cpan testers
-rw-r--r--RPM4/Makefile.PL3
1 files changed, 3 insertions, 0 deletions
diff --git a/RPM4/Makefile.PL b/RPM4/Makefile.PL
index 3120988..058b801 100644
--- a/RPM4/Makefile.PL
+++ b/RPM4/Makefile.PL
@@ -1,6 +1,7 @@
# $Id$
# use 5.008;
+use Config;
use ExtUtils::MakeMaker;
use ExtUtils::PkgConfig;
use Getopt::Long;
@@ -56,6 +57,8 @@ MAKECHANGELOG
WriteMakefile(
NAME => 'RPM4',
VERSION_FROM => 'lib/RPM4.pm',
+ # Just for seeing it in the logs when inspecting cpan testers failures:
+ CCFLAGS => "$cfg{cflags} -Wall -DRPM$cfg{modversion} $Config{ccflags}",
DIR => [ 'src' ],
'EXE_FILES' => [ qw(bin/rpm_produced bin/rpmresign bin/hrpmreb) ],
depend => { dist => 'copyrpmconstant' },