From f4c504acf2520f4765bcc5c2294065c72989b777 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 16 Apr 2011 07:49:31 +0000 Subject: clean rpm5 support out --- Makefile.PL | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 3274db1..9b5b3d0 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -50,16 +50,12 @@ ChangeLog: } my @rpmflags; -my $ldflags = `pkg-config --libs rpm`; +my $ldflags = `pkg-config --libs rpm -lrpmbuild`; if ($hversion ge hexversion("4.9.0") && $hversion lt hexversion("5.0")) { # rpm.org version 4.9.0 push @rpmflags, "-DRPM490"; } -if ($hversion ge hexversion("4.4.90") && $hversion lt hexversion("5.0")) { - # rpm.org version - push @rpmflags, "-DRPM_ORG"; - $ldflags .= ' -lrpmbuild'; -} + my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', @rpmflags); print "Found RPM version $version (compiling with flags: $ccflags)\n"; -- cgit v1.2.1