Re: Different flags for building plugins and gcc.

2010-05-12 Thread IainS
Hi Ian, On 12 May 2010, at 21:00, Ian Lance Taylor wrote: IainS writes: .. this seems a bit strange : -fPIC is not a ld flag... LDFLAGS is flags that are passed to the compiler when linking. It is not flags passed directly to the linker. I don't know why -fPIC is there, but it shouldn't

Re: Different flags for building plugins and gcc.

2010-05-12 Thread Ian Lance Taylor
IainS writes: > .. this seems a bit strange : -fPIC is not a ld flag... LDFLAGS is flags that are passed to the compiler when linking. It is not flags passed directly to the linker. I don't know why -fPIC is there, but it shouldn't do any harm. The Makefile fragment config/mh-ppc-darwin is s

Different flags for building plugins and gcc.

2010-05-12 Thread IainS
On darwin (powerpc only at present, but potentially i686 too) we use "- mdynamic-no-pic" to build the compiler. config/mh-ppc-darwin: # The -mdynamic-no-pic ensures that the compiler executable is built without # position-independent-code -- the usual default on Darwin. This fix speeds # co