gcc testsuite - howto adjust spec file

Robert Connolly robert at linuxfromscratch.org
Tue Jun 16 16:47:54 PDT 2009

Yes, exactly.

Each option sets 0 or 1 for that option. -fpie sets fpie to 1, -fno-pie sets 
it back to 0. Whatever the last option was is what gets used.


On Tuesday June 16 2009 10:39:57 am robert baker wrote:
> I think I kind of missed the point of your paragraph below. Correct me
> if I am wrong, but you are saying if two or more opposing flags are
> passed gcc will use the last one in the list. If that is the case then
> disregard my last mail in this thread.
> Robert Baker
> On Mon, Jun 15, 2009 at 9:36 PM, Robert
> Connolly<robert at linuxfromscratch.org> wrote:
> > Command line options will supersede these options, so if a test uses
> > -fPIE cc1 will get "-fno-PIE -fPIE", and everything will be okay. There's
> > no need for gcc spec rules for this application (toolchain test suites).
> > This does make a mess of "gcc -v", so it's not healthy to do this without
> > rules with the installed compiler.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20090616/5426aff1/attachment.sig>

More information about the hlfs-dev mailing list