summaryrefslogtreecommitdiffstats
path: root/perl-install/c/Makefile.PL
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-07-31 17:43:02 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-07-31 17:43:02 +0000
commit06ea1ab5a77e699d5d0ff772af74f1221159b86e (patch)
tree238d8c4947b2fef2eea2f1a72fc6b20fa22d3a43 /perl-install/c/Makefile.PL
parent13555b04bf30617f0a7e2cda9265b37112799d9e (diff)
downloaddrakx-06ea1ab5a77e699d5d0ff772af74f1221159b86e.tar
drakx-06ea1ab5a77e699d5d0ff772af74f1221159b86e.tar.gz
drakx-06ea1ab5a77e699d5d0ff772af74f1221159b86e.tar.bz2
drakx-06ea1ab5a77e699d5d0ff772af74f1221159b86e.tar.xz
drakx-06ea1ab5a77e699d5d0ff772af74f1221159b86e.zip
lib64 fixes
Diffstat (limited to 'perl-install/c/Makefile.PL')
-rw-r--r--perl-install/c/Makefile.PL5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/c/Makefile.PL b/perl-install/c/Makefile.PL
index 9a27c3592..c2527e2a0 100644
--- a/perl-install/c/Makefile.PL
+++ b/perl-install/c/Makefile.PL
@@ -1,10 +1,13 @@
+use MDK::Common;
use ExtUtils::MakeMaker;
use Config;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
+my $lib = arch() =~ /x86_64/ ? 'lib64' : 'lib';
+
my $libs = '-lldetect -lext2fs';
-$libs .= ' -L/usr/X11R6/lib -lX11 -lgdk -lXxf86misc' if $ENV{C_DRAKX};
+$libs .= " -L/usr/X11R6/$lib -lX11 -lgdk -lXxf86misc" if $ENV{C_DRAKX};
$libs .= ' -lrpm -lrpmdb -lrpmio -lpopt -lz' if $ENV{C_RPM};
my $pcmcia_dir = $ENV{C_DRAKX} && $Config{archname} =~ /i.86/ ? '../../mdk-stage1/pcmcia_' : '';