--- Linux-AIO/Makefile.PL 2004/07/18 10:56:50 1.4 +++ Linux-AIO/Makefile.PL 2004/08/06 17:18:08 1.5 @@ -43,9 +43,14 @@ } # now get rid of -fpic, because gcc can't use syscall'ed closures -# from within pic code. -for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { - s/\B-f(pic|PIC)\b//g +# from within pic code on x86. + +use Config; + +if ($Config{archname} =~ /i[x34567]86/) { + for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { + s/\B-f(pic|PIC)\b//g + } } $mm->flush;