… | |
… | |
41 | |
41 | |
42 | EOF |
42 | EOF |
43 | } |
43 | } |
44 | |
44 | |
45 | # now get rid of -fpic, because gcc can't use syscall'ed closures |
45 | # now get rid of -fpic, because gcc can't use syscall'ed closures |
46 | # from within pic code. |
46 | # from within pic code on x86. |
|
|
47 | |
|
|
48 | use Config; |
|
|
49 | |
|
|
50 | if ($Config{archname} =~ /i[x34567]86/) { |
47 | for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { |
51 | for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) { |
48 | s/\B-f(pic|PIC)\b//g |
52 | s/\B-f(pic|PIC)\b//g |
|
|
53 | } |
49 | } |
54 | } |
50 | |
55 | |
51 | $mm->flush; |
56 | $mm->flush; |
52 | |
57 | |