From 6db58cd3508f521f998d8100b62a4b0df9fa9a7c Mon Sep 17 00:00:00 2001 From: virtbuilder_pel7x64builder0 Date: Tue, 8 May 2018 16:47:06 +0200 Subject: [PATCH] qemu added multiarch support again Signed-off-by: virtbuilder_pel7x64builder0 --- SPECS/qemu.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/SPECS/qemu.spec b/SPECS/qemu.spec index bc0e9fc..eaebab6 100755 --- a/SPECS/qemu.spec +++ b/SPECS/qemu.spec @@ -316,10 +316,26 @@ This package provides the bootloader images for QEMU and stubs extraldflags="-Wl,--build-id"; buildldflags="VL_LDFLAGS=-Wl,--build-id" tracebackends="dtrace" +%ifarch ppc64 cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -mquad-memory -mquad-memory-atomic -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" - nativebuildarch="ppc64-softmmu" emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu" +%endif +%ifarch ppc64le +cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" +nativebuildarch="ppc64-softmmu" +emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu" +%endif +%ifarch x86_64 +cflags="-m64 -O3 -g -mcpu=core2 -mtune=core2 -mmmx -msse -msse2 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" +nativebuildarch="x86_64-softmmu" +emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu" +%endif +%ifarch aarch64 +nativebuildarch="aarch64-softmmu" +emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mips64-softmmu mips64el-softmmu alpha-softmmu ppcemb-softmmu arm-softmmu" +%endif + # native build ./configure \