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: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Jun 2011 12:50:00 +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 #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.