[MacPorts] #15772: ccache support sets incompatible compiler
MacPorts
noreply at macports.org
Sat Jun 28 11:07:57 PDT 2008
#15772: ccache support sets incompatible compiler
----------------------------------+-----------------------------------------
Reporter: landonf at macports.org | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.6.0
Keywords: |
----------------------------------+-----------------------------------------
Prior to the introduction of ccache-specific functionality, ccache could
be enabled by setting the binpath in macports.conf. This would result in
standard compiler names being found in /opt/local/libexec/ccache.
With the introduction of ccache-specific functionality -- in of itself a
layering violation -- the compiler is now munged at configure-time:
{{{
CC=ccache /usr/bin/gcc-4.0
}}}
This "two word" CC command breaks some otherwise valid Makefile that
expect CC to be a single command. An example:
{{{
ifndef $(CXX)
CXX = c++
endif
}}}
Results in:
{{{
Makefile:8: *** invalid syntax in conditional. Stop.
}}}
--
Ticket URL: <http://trac.macports.org/ticket/15772>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list