anchor.diff:  export ARCH_i686 = "x86"
   EXTRA_OEMAKE = "-e"
   
  -# FIXME: add missing options
  +# FIXME:
  +# * add missing options
  +# * auto stl detection is broken, so we disable it
   QT_CONFIG_FLAGS = "-release -shared -qt-zlib -system-libjpeg -no-nas-sound -no-sm -no-libmng -qt-libpng -no-gif -no-xinerama \
                      -no-tablet -no-xkb -no-nis -no-cups -no-opengl \
                      -nosse \
                      -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 \
  -                   -verbose -stl"
  +                   -verbose -no-stl -no-accessibility"
   
   EXTRA_ENV = 'QMAKE="${STAGING_BINDIR}/qmake2 -after DEFINES+=QT_NO_XIM INCPATH+=${STAGING_INCDIR} \
                INCPATH+=${STAGING_INCDIR}/freetype2 LIBS+=-L${STAGING_LIBDIR}" \
  
positive.code:            file://no-tools.patch;patch=1 \
             file://no-qmake.patch;patch=1 \
             file://gcc4_1.patch;patch=1 \
             file://configurable-cpu-extensions.patch;patch=1"
  S = "${WORKDIR}/qt-x11-opensource-src-${PV}"
  
  # TODO: make it not look in /usr and /usr/include for its tests!
  PARALLEL_MAKE = ""
  
  inherit qmake-base qt4x11 pkgconfig
  
negative.code: 	echo "DEFINES -= QT_NO_CAST_TO_ASCII" >>src/qbase.pri
  	echo "DEFINES += QT_NO_XIM" >>src/qbase.pri
  	unset QMAKESPEC
  	#export QMAKESPEC="linux-oe-g++"
  	ln -sf ${STAGING_BINDIR}/qmake2 bin/qmake
  	#rm -rf ./mkspecs
  	#ln -sf ${QMAKE_MKSPEC_PATH} ./mkspecs
  	echo yes | ./configure -prefix / -crossarch ${ARCH} ${QT_CONFIG_FLAGS} -fast \
  		-L${STAGING_LIBDIR} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/freetype2 -I${STAGING_INCDIR}/mysql
  }
  
  # FIXME: Might want to compile the cross tools for the -dev packages as well...
  do_compile() {
  	unset CFLAGS CXXFLAGS
  	install -m 0755 ${STAGING_BINDIR}/rcc4 ${S}/bin/rcc
  