Index: toolchain.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v --- toolchain.eclass 1 Jun 2015 16:05:43 -0000 1.675 +++ toolchain.eclass 22 Jun 2015 22:00:22 -0000 @@ -1119,10 +1119,11 @@ ### library options - if ! is_gcj ; then + if is_gcj ; then + confgcc+=( --disable-gjdoc ) + use awt && confgcc+=( --enable-java-awt=gtk ) + else confgcc+=( --disable-libgcj ) - elif use awt ; then - confgcc+=( --enable-java-awt=gtk ) fi if tc_version_is_at_least 4.2 ; then