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 #12 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-06-12 12:48:53 UTC ---
The reason for the error is that no spec matches the option.  For most 
targets, the option is matched in LINK_PIE_SPEC (only), which is part of 
LINK_COMMAND_SPEC; Darwin uses its own LINK_COMMAND_SPEC (as does DJGPP).  
I would advise making Darwin behave similarly to other targets by 
including an appropriate spec for this option in Darwin's 
LINK_COMMAND_SPEC.


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