diff options
Diffstat (limited to 'perl-install/c/Makefile.PL')
-rw-r--r-- | perl-install/c/Makefile.PL | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/c/Makefile.PL b/perl-install/c/Makefile.PL index 14c1df855..405c02ecc 100644 --- a/perl-install/c/Makefile.PL +++ b/perl-install/c/Makefile.PL @@ -8,17 +8,14 @@ my $lib = arch() =~ /x86_64/ ? 'lib64' : 'lib'; my $libs = '-lldetect'; -my $pcmcia_dir = $Config{archname} =~ /i.86/ ? '../../mdk-stage1/pcmcia_' : ''; - -symlink "$pcmcia_dir/probe.c", "probe.c" if $pcmcia_dir; +my $pcmcia_probe_o = "/usr/$lib/drakx-installer-binaries/pcmcia_probe.o"; WriteMakefile( 'NAME' => 'stuff', 'OPTIMIZE' => '-Os', 'MAKEFILE' => 'Makefile_c', - 'OBJECT' => "stuff.o " . ($pcmcia_dir && " probe.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' => ($pcmcia_dir && " -I$pcmcia_dir -I$pcmcia_dir/.."), ); |