From 850a49881df49980431a56c38d539e7cd3f05577 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 5 Nov 2017 07:53:32 +0100 Subject: add cflags reported by pkgconfig Needed for eg: FreeBSD where rpm is installed under /usr/local --- Makefile.PL | 2 +- NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 8f4b659..8263fb7 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,7 +34,7 @@ unless (eval { %cfg = ExtUtils::PkgConfig->find("rpm >= $build_reqs{rpm}"); 1 }) } -my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing'); +my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', $cfg{cflags}); print "Found RPM version $cfg{modversion} (compiling with flags: $ccflags)\n"; diff --git a/NEWS b/NEWS index 47218d0..206fe04 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ - revert fix for segfault with rpm-4.14 when checking invalid signatures as rpm got fixed - use ExtUtils::PkgConfig in order to get rpm installed +- cpan testers: + o add cflags reported by pkgconfig + (needed for eg: FreeBSD where rpm is installed under /usr/local) Version 5.15 - 3 October 2017 -- cgit v1.2.1