# grep -e ^C.*FLAGS /etc/make.conf CFLAGS="-march=native -O2 -Wno-pointer-sign -pipe" CXXFLAGS="-march=native -O2 -pipe -g0 # grep gcc methane-1.5.1\:20130105-193737.log | tail -n1 x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -g0 -DENABLE_SOUND `pkg-config --cflags clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3` -c sources/misc.cpp -o build/misc.o
This sed command in the src_prepare() function will fix the problem: sed -e 's:$(CC) ${CXXFLAGS}:$(CC) ${CFLAGS}:' -i Makefile
Sorry, this one is the valid solution: sed -e 's:$(CC):$(CXX):' -i Makefile
we should rather fix the patch: --- games-arcade/methane/files/methane-1.5.1-gentoo.patch +++ games-arcade/methane/files/methane-1.5.1-gentoo.patch @@ -22,7 +22,7 @@ @echo " Compiling $<..." @if [ ! -d build ]; then mkdir build; fi - gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ -+ $(CC) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ ++ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ --- sources/methane.cpp.old 2012-11-27 13:49:22.993003266 +0100
(In reply to comment #3) > we should rather fix the patch: > > --- games-arcade/methane/files/methane-1.5.1-gentoo.patch > +++ games-arcade/methane/files/methane-1.5.1-gentoo.patch > @@ -22,7 +22,7 @@ > @echo " Compiling $<..." > @if [ ! -d build ]; then mkdir build; fi > - gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ > -+ $(CC) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ > ++ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ > > > --- sources/methane.cpp.old 2012-11-27 13:49:22.993003266 +0100 I'm agree :-)
+ 05 Jan 2013; Julian Ospald <hasufell@gentoo.org> + files/methane-1.5.1-gentoo.patch: + use correct compiler wrt #450446