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

Bug 118358

Summary: widelands doesn't honor CFLAGS
Product: Gentoo Linux Reporter: Christopher Covington <covracer>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christopher Covington 2006-01-08 22:10:13 UTC
games-strategy/widelands uses its own cflags to compile. Here's an example:

g++ -pipe -Wall -I/usr/include/SDL -D_REENTRANT  -finline-functions -ffast-math -funroll-loops -funroll-all-loops -fexpensive-optimizations -O3 -DNDEBUG -Isrc -Isrc/ui/ui_fs_menus -Isrc/ui/ui_basic -Isrc/editor -Isrc/editor/ui_menus -Isrc/editor/tools -MMD -MP -MF src/native-release/main.o.d -c -o src/native-release/main.o src/main.cc

The comments in the Makefile mention that -fomit-frame-pointers breaks exceptions so I suppose flag-o-matic should filter it out before appending the user CFLAGS to the ones used to compile. Never used flag-o-matic or even eclasses before and I don't quite have time ATM to learn how so I'll leave it in the hands of you devs for now and possibly post a couple line patch in the future if you guys don't get around to this for a while.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-13 06:02:44 UTC
Thanks, fixed