toolchain.eclass: Do not pass unused --disable-libgcj option in GCC >=7.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Sun, 1 Jul 2018 22:17:04 +0000 (00:17 +0200)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 1 Jul 2018 22:40:58 +0000 (23:40 +0100)
Closes: https://bugs.gentoo.org/659798
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 68e4ce15b377fbc4df0659f1df94fc96a67c3101..d80889d1ba6467ee1409e3000af283471b290ad4 100644 (file)
@@ -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