From 530c37ba0a008147ca471921cc69b058e4b8a12b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 29 Apr 2022 10:20:04 +0200 Subject: Show rpm version in cflags in order to have more data from cpan testers --- RPM4/Makefile.PL | 3 +++ 1 file changed, 3 insertions(+) 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' }, -- cgit v1.2.1