diff options
Diffstat (limited to 'app')
-rwxr-xr-x | app/emulation/qemu/qemu.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/emulation/qemu/qemu.SlackBuild b/app/emulation/qemu/qemu.SlackBuild index 46806c99..0c31c5fb 100755 --- a/app/emulation/qemu/qemu.SlackBuild +++ b/app/emulation/qemu/qemu.SlackBuild @@ -62,15 +62,19 @@ LIBDIR=$PREFIX/lib # Seleciona flags para o compilador if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mtune=i686" + TARGET_LIST="i386-linux-user i386-softmmu" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + TARGET_LIST="i386-linux-user i386-softmmu" elif [ "$ARCH" = "i686" ]; then - #SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686" + TARGET_LIST="i386-linux-user i386-softmmu" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" + TARGET_LIST="ppc-linux-user ppc-softmmu" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" + TARGET_LIST="x86_64-linux-user x86_64-softmmu" LIBDIR="$PREFIX/lib64" fi @@ -89,7 +93,10 @@ cd $PKG_DIR # -------------- Configura programa --------------------- # Configura programa -CFLAGS="$SLKCFLAGS" ./configure --prefix=$PREFIX --libdir=$LIBDIR $OPTCONF || exit $ERROR_CONF +CFLAGS="$SLKCFLAGS" \ + ./configure --target-list="$TARGET_LIST" \ + --prefix=$PREFIX \ + --libdir=$LIBDIR $OPTCONF || exit $ERROR_CONF # ---------------- Compila programa --------------------- make -j1 || exit $ERROR_MAKE |