Created attachment 308019 [details, diff] ebuild.patch make -j4 cc -march=native -O2 -g0 -c -o netcat.o netcat.c g++ -march=native -O2 -c -o farm9crypt.o farm9crypt.cc g++ -march=native -O2 -c -o twofish2.o twofish2.cc with the patch: make -j4 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ x86_64-pc-linux-gnu-gcc -march=native -O2 -g0 -c -o netcat.o netcat.c x86_64-pc-linux-gnu-g++ -march=native -O2 -c -o farm9crypt.o farm9crypt.cc x86_64-pc-linux-gnu-g++ -march=native -O2 -c -o twofish2.o twofish2.cc x86_64-pc-linux-gnu-g++ -march=native -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o cryptcat netcat.o farm9crypt.o twofish2.o Cleanup and EAPI4 bump included.
Setting up src_compile just to use tc-getC{C,XX} is not needed when you can simply call `tc-export CC CXX' instead. Otherwise, the patch went more or less straight into the tree, in -r1.