Re: AIX and gcc (moving targets)
H.Merijn Brand [Tue, 29 May 2001 17:59:40 +0000 (19:59 +0200)]
Message-Id: <20010529175841.7078.H.M.BRAND@hccnet.nl>

p4raw-id: //depot/perl@10296

ext/Storable/Makefile.PL

index c8151f3..49270b3 100644 (file)
 use ExtUtils::MakeMaker;
 use Config;
 
+my @libs = ();
+$Config{gccversion} eq "" or @libs = ('LIBS' => ["-lgcc"]);
+
 WriteMakefile(
-    'NAME'                     => 'Storable',
+    'NAME'             => 'Storable',
     'DISTNAME'         => "Storable",
-       'MAN3PODS'              => {},
+    @libs,
+    'MAN3PODS'         => {},
     'VERSION_FROM'     => 'Storable.pm',
     'dist'                     => { SUFFIX => 'gz', COMPRESS => 'gzip -f' },
 );