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

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Wed, 25 Sep 2013 02:31:50 -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 kallisti5):

 > On PM-Haiku, you should be able to activate a specific compiler by
 adding its path
 > to the 'PATH' environment variable. This could be done by a script named
 'setgcc',
 > of course ... patches welcome ;-)

 gcc2h-----
 alias / symlink gcc = gcc2_x86
 gcc2_x86 - gcc 2
 gcc4_x86 - gcc 4

 gcc4h-----
 alias / symlink gcc = gcc4_x86
 gcc2_x86 - gcc 2
 gcc4_x86 - gcc 4


 That way things are at least consistant across the platforms. Then setgcc
 is used to adjust the CC and CXX.

 setgcc then would:
   update CC and CXX to point to the proper compiler executable

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

Other related posts: