diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-06 11:18:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-06 11:18:16 +0100 |
commit | ebce8994fe3cc4ca9fbc96ca837cb4c4e98adcbd (patch) | |
tree | f2204ce5f94dc3cb13728ff93649d889944952bb /eclass/toolchain.eclass | |
parent | fe1c8b732bd548b699d4c2ef725f67f8b8c8911c (diff) |
gentoo resync : 06.05.2018
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 2cac026eefa8..47ee5495739c 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1207,7 +1207,17 @@ toolchain_src_configure() { if hardened_gcc_is_stable ssp; then export gcc_cv_libc_provides_ssp=yes fi - confgcc+=( --disable-libssp ) + if use_if_iuse ssp; then + # On some targets USE="ssp -libssp" is an invalid + # configuration as target libc does not provide + # stack_chk_* functions. Do not disable libssp there. + case ${CTARGET} in + mingw*|*-mingw*) ewarn "Not disabling libssp" ;; + *) confgcc+=( --disable-libssp ) ;; + esac + else + confgcc+=( --disable-libssp ) + fi fi fi |