diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2018-07-02 00:17:04 +0200 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-07-01 23:40:58 +0100 |
commit | 335cd9e205e69ad8afebe8b75815c2d9ce2c1374 (patch) | |
tree | e638c93089683ac83bdabdac3db8302303d4730f /eclass/toolchain.eclass | |
parent | net-wireless/iwd: add a few more kernel CONFIG_* checks (diff) | |
download | gentoo-335cd9e205e69ad8afebe8b75815c2d9ce2c1374.tar.gz gentoo-335cd9e205e69ad8afebe8b75815c2d9ce2c1374.tar.bz2 gentoo-335cd9e205e69ad8afebe8b75815c2d9ce2c1374.zip |
toolchain.eclass: Do not pass unused --disable-libgcj option in GCC >=7.
Closes: https://bugs.gentoo.org/659798
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 68e4ce15b377..d80889d1ba64 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1175,10 +1175,12 @@ toolchain_src_configure() { ### library options - if ! is_gcj ; then - confgcc+=( --disable-libgcj ) - elif use awt ; then - confgcc+=( --enable-java-awt=gtk ) + if tc_version_is_between 3.0 7.0 ; then + if ! is_gcj ; then + confgcc+=( --disable-libgcj ) + elif use awt ; then + confgcc+=( --enable-java-awt=gtk ) + fi fi if tc_version_is_at_least 4.2 ; then |