[haiku-bugs] Re: [Haiku] #8031: new gcc indirect linking policy changes cause build failures / missing symbols.

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Fri, 04 Nov 2011 17:59:42 -0000

#8031: new gcc indirect linking policy changes cause build failures / missing
symbols.
----------------------------+----------------------------
   Reporter:  kallisti5     |      Owner:  bonefish
       Type:  bug           |     Status:  new
   Priority:  high          |  Milestone:  R1/beta1
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:16 kallisti5]:
 > leavengood: yeah, we can do that... however it's a hack.
 $(HOST_LIBROOT) is already linked.. but in the wrong order...
 >
 > then again.. having --no-as-needed --as-needed --no-as-needed --as-
 needed --no-as-needed in the final compile statement is kinda a hack as
 well :)

 Not really. It would just counter a flag that really shouldn't be there in
 the first place. I agree with the general intend of avoiding building in
 library dependencies that aren't necessary, but `--as-needed` implements
 it in a way that makes using the linker unnecessarily inconvenient. I find
 it rather stupid to list libraries multiple times just to appease such a
 linker.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8031#comment:17>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: