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

Bug 257587

Summary: flag-o-matic.eclass needs to perform platform-specific filtering for 'strip-flags'
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: major CC: sam
Priority: High Keywords: NeedPatch
Version: unspecified   
Hardware: All   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2009-02-04 12:12:38 UTC
Until platform-specific CFLAG filtering can be implemented, the function should check $CHOST and only filter for known values.

For example, on IRIX the following flags *must not* be stripped:

-c99, -32, -o32, -n32, -64, -mips[1-4], -r{4,5,8,10,12,14,16}000, -TARG:.*, -diag_error [0-9]+

(The last because the compiler incorrectly treats compiler status 1035 - #error directive in a source file - as a warning rather than an error)

This is normally dealt with by the compiler wrapper script that I'm (still...) working on re-adding the necessary flags, but it has problems with how gtk+-2 (ab)uses double-quotes during it's build.  I'm now resorting to building without the wrapper and relying on the ebuild and the source configure/Makefile not to remove any necessary include, library, or rpaths - but this fails almost immediately because the ebuild's strip-flags statement removes the '-c99' flag, removing C99 and therefore glib support.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-19 22:59:50 UTC
This will need significant work. Marking as NeedPatch for now.
Comment 2 Fabian Groffen gentoo-dev 2011-12-15 18:07:12 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.