This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/49371] xgcc: error: unrecognized option '-pie' on *-apple-darwin*


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]