See the Makefiles for lastfmplayer, should use $(tc-getCXX) instead
Can you explain better what you mean? All I can see on makefiles is this ####### Compiler, tools and options CC = gcc CXX = g++ [snip] .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" Everything looks good to me
(In reply to comment #1) > Can you explain better what you mean? All I can see on makefiles is this Please get familiar with toolchain-funcs.eclass. > > ####### Compiler, tools and options > > CC = gcc > CXX = g++ > > [snip] > > > .cpp.o: > $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" > > .cc.o: > $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" > > > Everything looks good to me > It's wrong. It should be: CC ?= gcc CXX ?= g++ And after this it would pick the CC and CXX variables from environment, which we could pass by using toolchain-funcs.eclass, and tc-export CC CXX. Right now, the way to fix this something like.. emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" Reason: This will surely break crosscompile/distcc/other special cases.
In portage.