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

Bug 450164

Summary: games-board/ace does not respect CC
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502, 450270    
Attachments: ace-1.4-CC.patch

Description Agostino Sarubbo gentoo-dev 2013-01-04 12:48:39 UTC
You receive this bug because this package does not respect my system's CC ( x86_64-pc-linux-gnu-gcc - /usr/bin/x86_64-pc-linux-gnu-gcc ) and calls directly gcc -/usr/bin/gcc
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"


Note: CC is unsrespected at link time:

gcc -O2 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu ./make-imglib.c -o make-imglib -lpng -lz
gcc -O2 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu ./text2c.c -o text2c -lpng -lz
Comment 1 Julian Ospald 2013-01-04 17:45:05 UTC
Created attachment 334448 [details, diff]
ace-1.4-CC.patch
Comment 2 Julian Ospald 2013-01-04 20:00:40 UTC
+  04 Jan 2013; Julian Ospald <hasufell@gentoo.org> ace-1.4.ebuild,
+  +files/ace-1.4-CC.patch, +files/ace-1.4-clang.patch:
+  fix bug 450164 and bug 450270