Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159402 - strip-flags removes all -D flags
Summary: strip-flags removes all -D flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Other
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-29 11:16 UTC by Dustin J. Mitchell
Modified: 2006-12-29 13:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin J. Mitchell 2006-12-29 11:16:00 UTC
We need to add -DLARGE_CONFIG to the gcc compile (it's a flag to boehm-gc, included in libgcj).  I imagine that, at least on occasion, many people are in the position of patching gcc (!).  It would be great if adding 

src_compile() {
  append-flags -DLARGE_CONFIG
  toolchain_src_compile
}

did the trick, but it doesn't, because gcc_do_filter_flags filters out that -D with a call to strip_flags.  The upshot is that in order to send this flag to gcc, I have to patch the eclass, rather than just create a revbump'd gcc ebuild.

Any solutions I can think of will be obvious to the toolchain maintainers, and I don't have the background to know which is best, so I'll leave that issue alone.
Comment 1 SpanKY gentoo-dev 2006-12-29 13:30:44 UTC
strip-flags now allows -D*