--- eclass/qt4.eclass 2007-07-31 16:06:06.000000000 +0200 +++ eclass/qt4.eclass 2007-08-02 11:28:48.000000000 +0200 @@ -15,7 +15,7 @@ inherit eutils multilib toolchain-funcs versionator -IUSE="${IUSE} debug" +IUSE="${IUSE}" QTPKG="x11-libs/qt-" QT4MAJORVERSIONS="4.3 4.2 4.1 4.0" @@ -85,7 +85,7 @@ echo >> ${LOGFILE} # as a workaround for broken qmake, put everything into file - if use debug; then + if has debug ${IUSE} && use debug ; then echo -e "$CONFIG -= release\nCONFIG += no_fixpath debug" >> ${projprofile} else echo -e "$CONFIG -= debug\nCONFIG += no_fixpath release" >> ${projprofile}