[haiku-bugs] [Haiku] #12445: gcc 2, gcc 4: Correct LINK_SPEC

  • From: "simonsouth" <trac@xxxxxxxxxxxx>
  • Date: Wed, 04 Nov 2015 09:21:10 -0000

#12445: gcc 2, gcc 4: Correct LINK_SPEC
-------------------------+------------------------------
Reporter: simonsouth | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: System | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-------------------------+------------------------------
The attached patch fixes a few issues I've recognized with my recent
changes to `LINK_SPEC` in gcc 2 and 4 (see #12430 and #12439).

With the patch applied, the two compilers will

* Set appropriate dynamic-link options for any type of dynamically linked
executable, not only position-independent ones;
* Not omit these options if `-pie` is specified by the user; and
* Recognize the `-static` option.

Additionally I've re-added a hyphen that was missing from `--no-
undefined`.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12445>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: