[haiku-bugs] Re: [Haiku] #10014: bring back setgcc in PM

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 25 Sep 2013 23:12:47 -0000

#10014: bring back setgcc in PM
   Reporter:  kallisti5     |      Owner:  bonefish
       Type:  enhancement   |     Status:  new
   Priority:  normal        |  Milestone:  R1/beta1
  Component:  Build System  |    Version:  R1/Package Management
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All

Comment (by bonefish):

 Replying to [comment:8 axeld]:
 > [...] ie. it should be possible for software to select the default
 compiler (ie. gcc which will be architecture dependent), always use gcc4,
 or always use gcc2.

 Did you miss not being able to do that on Haiku? I didn't. If anybody
 wants to add extra symlinks, feel free to update the recipes and rebuild
 the primary gcc packages. Please stick to the already used naming
 convention, though, i.e. "gcc-<arch>", where <arch> is the name of the
 packaging architecture (i.e. "x86" for x86 gcc 4, "x86_gcc2" for x86 gcc
 2, and "x86_64" for x86-64).

 Regarding `setgcc`, that's somewhere on my TODO list, though not top
 priority (hint!). Given that using the CC and CXX environment variables is
 a relatively common, but not ubiquitous convention, I would rather use the
 method Oliver suggested, i.e. adjust PATH. Consequently I would probably
 name the beast `setarch`. Obviously it either has to be a shell function
 or start a new shell. In the latter case it would behave similar to
 `linux32`, i.e. could be `exit`'ed.

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

Other related posts: