diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-07-27 12:42:15 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-07-27 12:42:15 +0000 |
commit | 60bb91532ae971221aae22da36dd6f981936a63e (patch) | |
tree | cac5db3abbf114c907e56cc408c8d1e06c4e9808 /Makefile.PL | |
parent | b8614eb02527e7e852f753084fa58f6eb7a45264 (diff) | |
download | perl-URPM-60bb91532ae971221aae22da36dd6f981936a63e.tar perl-URPM-60bb91532ae971221aae22da36dd6f981936a63e.tar.gz perl-URPM-60bb91532ae971221aae22da36dd6f981936a63e.tar.bz2 perl-URPM-60bb91532ae971221aae22da36dd6f981936a63e.tar.xz perl-URPM-60bb91532ae971221aae22da36dd6f981936a63e.zip |
use pkg-config for rpm 4.x too
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile.PL b/Makefile.PL index 7fbd17b..cb753de 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -50,14 +50,11 @@ ChangeLog: } my @rpmflags; -my $ldflags; if ($hversion ge hexversion("4.4.90") && $hversion lt hexversion("4.7")) { # rpm.org version push @rpmflags, "-DRPM_ORG"; - $ldflags = '-lrpm -lrpmio -lrpmbuild'; } else { # rpm5.org version - $ldflags = `pkg-config --libs rpm`; } my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', @rpmflags); @@ -70,7 +67,7 @@ WriteMakefile( }, CCFLAGS => $ccflags, VERSION_FROM => 'URPM.pm', - LIBS => [ $ldflags ], + LIBS => [ `pkg-config --libs rpm` ], INC => '-I/usr/include/rpm', dist => { COMPRESS => "bzip2", SUFFIX => ".bz2" }, realclean => { FILES => "t/RPMS/noarch/*" }, |