This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Different flags for building plugins and gcc.
- From: Ian Lance Taylor <iant at google dot com>
- To: IainS <developer at sandoe-acoustics dot co dot uk>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>
- Date: Wed, 12 May 2010 13:00:46 -0700
- Subject: Re: Different flags for building plugins and gcc.
- References: <03CFA7CE-3975-4F1E-B536-45C45B77E518@sandoe-acoustics.co.uk>
IainS <developer@sandoe-acoustics.co.uk> 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 selected in
configure.ac. I think the simplest approach would be to select
different config files based on whether --enable-plugins is used.
Ian