Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568306 - sys-devel/{gcc,binutils}: make cross-compiling poison logic kick in based on --sysroot settings
Summary: sys-devel/{gcc,binutils}: make cross-compiling poison logic kick in based on ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Gentoo Crossdev team
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
Reported: 2015-12-15 05:52 UTC by SpanKY
Modified: 2019-12-23 00:12 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2015-12-15 05:52:52 UTC
atm, we enable the poisoned system flags only for cross-compilers.  we should make these flags always available (even native toolchains), and by default only enable the warning when the active sysroot is not /.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-22 23:57:49 UTC
I guess it's specifically about the

	### Cross-compiler options
	if is_crosscompile ; then
		# Enable build warnings by default with cross-compilers when system
		# paths are included (e.g. via -I flags).
		confgcc+=( --enable-poison-system-directories )
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-23 00:12:55 UTC
Gentoo stopped applying gcc-poison-system-directories.patch after gcc-5.5.0.

openembedded has a refreshed version of the patch:

Does not looks like the patch ever meant to be applied upstream. I suggest upstreaming some form of this patch instead and make enhancements there.