aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-11-05 07:53:32 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-11-06 20:53:09 +0100
commit850a49881df49980431a56c38d539e7cd3f05577 (patch)
tree1cf820edd06553960dc63f6b80f4eb820a451d41
parent5f0970547effa847de30eb48858c520f68f20ebf (diff)
downloadperl-URPM-850a49881df49980431a56c38d539e7cd3f05577.tar
perl-URPM-850a49881df49980431a56c38d539e7cd3f05577.tar.gz
perl-URPM-850a49881df49980431a56c38d539e7cd3f05577.tar.bz2
perl-URPM-850a49881df49980431a56c38d539e7cd3f05577.tar.xz
perl-URPM-850a49881df49980431a56c38d539e7cd3f05577.zip
add cflags reported by pkgconfig
Needed for eg: FreeBSD where rpm is installed under /usr/local
-rwxr-xr-xMakefile.PL2
-rw-r--r--NEWS3
2 files changed, 4 insertions, 1 deletions
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