aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 16:15:21 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-07-28 16:15:21 +0000
commit8295ff438e1ca435ba13ac13698df64bb51b984f (patch)
tree4f357ece7e9cd9546cfdb7f04f7b3742cdc3b463 /Makefile.PL
parent68f673b52568b7e0347470a6bc1c4acdba5c10a2 (diff)
downloadperl-URPM-8295ff438e1ca435ba13ac13698df64bb51b984f.tar
perl-URPM-8295ff438e1ca435ba13ac13698df64bb51b984f.tar.gz
perl-URPM-8295ff438e1ca435ba13ac13698df64bb51b984f.tar.bz2
perl-URPM-8295ff438e1ca435ba13ac13698df64bb51b984f.tar.xz
perl-URPM-8295ff438e1ca435ba13ac13698df64bb51b984f.zip
we need to link with rpmbuild with rpm 4.6
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.PL b/Makefile.PL
index cb753de..a35ba66 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -50,11 +50,11 @@ ChangeLog:
}
my @rpmflags;
+my $ldflags = `pkg-config --libs rpm`;
if ($hversion ge hexversion("4.4.90") && $hversion lt hexversion("4.7")) {
# rpm.org version
push @rpmflags, "-DRPM_ORG";
-} else {
- # rpm5.org version
+ $ldflags .= ' -lrpmbuild';
}
my $ccflags = join(' ', '-Wall -Wextra -fno-strict-aliasing', @rpmflags);
@@ -67,7 +67,7 @@ WriteMakefile(
},
CCFLAGS => $ccflags,
VERSION_FROM => 'URPM.pm',
- LIBS => [ `pkg-config --libs rpm` ],
+ LIBS => [ $ldflags ],
INC => '-I/usr/include/rpm',
dist => { COMPRESS => "bzip2", SUFFIX => ".bz2" },
realclean => { FILES => "t/RPMS/noarch/*" },