Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 411075

Summary: net-analyzer/cryptcat-1.2.1 : calls directly gcc/g++
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    
Attachments: ebuild.patch

Description Agostino Sarubbo gentoo-dev 2012-04-06 19:27:00 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-12 04:11:39 UTC
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.