[MacPorts] #43734: *gcc*, gcc_select: add symlink for ${prefix}/bin/cc

MacPorts noreply at macports.org
Mon May 19 07:18:56 PDT 2014


#43734: *gcc*, gcc_select: add symlink for ${prefix}/bin/cc
-------------------------+-------------------
  Reporter:  ionic@…     |      Owner:  mww@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  gcc_select  |
-------------------------+-------------------

Comment (by Peter.Danecek@…):

 I brought this up originally and was mainly concerned with consistency,
 i.e. avoiding that using generic `cc` and `c++` would result in using
 potentially very different compilers. The following is what happens
 currently on my system:

 {{{
 petr% which cc
 /usr/bin/cc
 petr% which c++
 /opt/local/bin/c++
 }}}

 Now thinking about this in detail, I believe that there is a valid point
 that `cc` and `c++` might use **any** C compiler, as valid target, not
 only one of the GCC versions. This would imply a slightly more complicated
 solution than the one proposed above.

 * `gcc_select` would not provide the `${prefix}/bin/c++` link anymore;
 * instead a new `cc_select` would provide a possibility to select where
 `${prefix}/bin/cc` and `${prefix}/bin/c++` should point to, with the
 option to select among all valid C compilers (gcc/dragonegg, clang,
 system, etc.)

 This is probably the cleanest way to deal with this. Too complicated?

-- 
Ticket URL: <https://trac.macports.org/ticket/43734#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list