[MacPorts] #30434: Should port select gcc also set /usr/bin/cc?

MacPorts noreply at macports.org
Thu Jul 28 11:51:00 PDT 2011


#30434: Should port select gcc also set /usr/bin/cc?
----------------------------+-----------------------------------------------
 Reporter:  ionic@…         |       Owner:  macports-tickets@…                   
     Type:  request         |      Status:  new                                  
 Priority:  Low             |   Milestone:                                       
Component:  base            |     Version:  2.0.0                                
 Keywords:  select gcc      |        Port:                                       
----------------------------+-----------------------------------------------
 Hi,

 currently port select gcc only changes the binaries in $PREFIX/bin.

 However, at least some ports use /usr/bin/cc as the default compiler.
 This ports will likely end up using whatever /usr/bin/cc is set to - for
 instance llvm-gcc42 if XCode 4 was installed, although the user MAY have
 selected gcc42 manually and lives under the impression it's used.

 Then again, I don't know, whether it's a good thing to fiddle outside of
 $PREFIX, so I'll open this for discussion.

 I'd vote for yes and moreover possibly also change all other symlinks in
 /usr/bin as gcc, g++, c++ etc. BUT symlink them to their /opt/local/bin
 counterparts, so we don't need to keep two places in sync.

 Best regards,


 Mihai

-- 
Ticket URL: <https://trac.macports.org/ticket/30434>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list