diff options
Diffstat (limited to 'perl-install/c/Makefile.PL')
| -rwxr-xr-x[-rw-r--r--] | perl-install/c/Makefile.PL | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/perl-install/c/Makefile.PL b/perl-install/c/Makefile.PL index 080a755e0..f776d27f2 100644..100755 --- a/perl-install/c/Makefile.PL +++ b/perl-install/c/Makefile.PL @@ -1,18 +1,21 @@ +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 $libs = '-lldetect'; -$libs .= ' -L/usr/X11R6/lib -lX11 -lgdk -lXxf86misc' if $ENV{C_DRAKX}; -$libs .= ' -lrpm -lrpmio -lz' if $ENV{C_RPM}; +my $lib = arch() =~ /x86_64/ ? 'lib64' : 'lib'; + +my $libs = '-lldetect -lparted'; + +my $pcmcia_probe_o = "/usr/$lib/drakx-installer-binaries/pcmcia_probe.o"; WriteMakefile( 'NAME' => 'stuff', - 'OPTIMIZE' => '-Os', + 'OPTIMIZE' => '-Os -Wall', 'MAKEFILE' => 'Makefile_c', - 'OBJECT' => 'stuff.o smp.o sbus.o silo.o', + 'OBJECT' => "stuff.o " . (-e $pcmcia_probe_o && " $pcmcia_probe_o"), 'VERSION_FROM' => 'stuff.pm', # finds $VERSION 'LIBS' => [$libs], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' - 'INC' => '-I/usr/include/rpm `gtk-config --cflags` `glib-config --cflags`', # e.g., '-I/usr/include/other' ); |
