This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*
- From: "iains at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Jun 2011 20:11:38 +0000
- Subject: [Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*
- Auto-submitted: auto-generated
- References: <bug-49371-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49371
--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> 2011-06-12 20:10:10 UTC ---
(In reply to comment #19)
> > what happens for
> > gcc47 -m32 -fno-PIC -fpie backtrace.c
> > ?
>
> [macbook] f90/bug% gcc47 -m32 -fno-PIC -fpie backtrace.c
> [macbook] f90/bug% otool -hv a.out
> a.out:
> Mach header
> magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
> MH_MAGIC I386 ALL 0x00 EXECUTE 12 1236 NOUNDEFS
> DYLDLINK TWOLEVEL PIE
that's correct - the pie will override the no-PIC because it comes later on the
c/l.
---
However, sorry, that was a 'red herring' - the outcome is as expected for the
original set of options - as per comment #18.
we have some slight differences from the system tools - which treat the options
more restrictively than GCC; but I don't think those differences will matter to
anyone unless they issue conflicting flags - which will error on GCC but
sometimes be silently ignored by the system tools.