diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-06 10:13:14 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-06 10:25:03 +0100 |
commit | 9dd010761f134da0f84ef8a86d77825d62953fe5 (patch) | |
tree | 246b4c1c32c3c02423c2f4c56aeeaf6f25a6f805 /eclass | |
parent | install-qa-check.d: Move 08gentoo-paths check outta Portage (diff) | |
download | gentoo-9dd010761f134da0f84ef8a86d77825d62953fe5.tar.gz gentoo-9dd010761f134da0f84ef8a86d77825d62953fe5.tar.bz2 gentoo-9dd010761f134da0f84ef8a86d77825d62953fe5.zip |
toolchain.eclass: filter out -Wextra -Wstack-protector
On gcc-3.x -Wextra -Wstack-protector were not yet present.
These options are seen occasionally in users' CFLAGS.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index e2629d40393d..0e44d922ebe6 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1507,6 +1507,8 @@ gcc_do_filter_flags() { filter-flags -f{no-,}unit-at-a-time -f{no-,}web -mno-tls-direct-seg-refs filter-flags -f{no-,}stack-protector{,-all} filter-flags -fvisibility-inlines-hidden -fvisibility=hidden + # and warning options + filter-flags -Wextra -Wstack-protector fi if ! tc_version_is_at_least 4.1 ; then filter-flags -fdiagnostics-show-option |