From: H.Merijn Brand Date: Tue, 29 May 2001 12:32:57 +0000 (+0200) Subject: Re: AIX and gcc (moving targets) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=180a9ea52e8ec647209128f107d8470cc53d55b1;p=p5sagit%2Fp5-mst-13.2.git Re: AIX and gcc (moving targets) Message-Id: <20010529115151.9FE0.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@10295 --- diff --git a/ext/POSIX/Makefile.PL b/ext/POSIX/Makefile.PL index 73bb02d..081f934 100644 --- a/ext/POSIX/Makefile.PL +++ b/ext/POSIX/Makefile.PL @@ -2,7 +2,9 @@ use ExtUtils::MakeMaker; use Config; my @libs; if ($^O ne 'MSWin32') { - @libs = ('LIBS' => ["-lm -lposix -lcposix"]); + my $libs = "-lm -lposix -lcposix"; + $Config{gccversion} ne "" and $libs .= " -lgcc"; + @libs = ('LIBS' => [ $libs ]); } WriteMakefile( NAME => 'POSIX',