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 19:17:24 +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 #18 from Iain Sandoe <iains at gcc dot gnu.org> 2011-06-12 19:16:05 UTC ---
(In reply to comment #16)
> > [macbook] f90/bug% gcc47 -m32 -fno-PIC -pie backtrace.c
> > ld: cannot link -pie: -mdynamic-no-pic codegen found in _myfunc3 from
> > /var/tmp//cccDWsse.o
> > collect2: error: ld returned 1 exit status
OK, now I look harder, that is correct.
The User has instructed the compiler NOT to generate position independent code
- (so it will generate mdynamic-no-pic, by default) - [at m32, m64 should make
no difference on x86]
The User has then told the linker to link '-pie' which it creates a conflict.
... so, I think this is the correct outcome (if not immediately palatable).