From 5987ff5b54ea8574e825065bfa6dd634f7f8b894f2f928a6fd7b72b1ffcf47a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 15 Oct 2011 02:55:48 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvpx?expand=0&rev=34 --- libvpx-configure-add-armv7-tgt-isa.patch | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/libvpx-configure-add-armv7-tgt-isa.patch b/libvpx-configure-add-armv7-tgt-isa.patch index 4dd8695..c897f59 100644 --- a/libvpx-configure-add-armv7-tgt-isa.patch +++ b/libvpx-configure-add-armv7-tgt-isa.patch @@ -11,18 +11,15 @@ Index: libvpx-v0.9.7-p1/build/make/configure.sh else CROSS=${CROSS:-arm-none-linux-gnueabi-} fi -@@ -670,8 +672,13 @@ process_common_toolchain() { +@@ -670,8 +672,10 @@ process_common_toolchain() { check_add_asflags -mcpu=${tgt_isa} elif enabled armv7 then - check_add_cflags -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-ftree-vectorize - check_add_asflags -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-march=armv7-a -+ if [[ "$(uname -m)" == $tgt_isa* ]]; then -+ check_add_cflags -mfpu=neon -+ check_add_asflags -mfpu=neon -+ else -+ check_add_cflags -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-ftree-vectorize -+ check_add_asflags -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-march=armv7-a ++ if [[ "$(uname -m)" != $tgt_isa* ]]; then ++ check_add_cflags -march=armv7-a -mcpu=cortex-a8 #-ftree-vectorize ++ check_add_asflags -mcpu=cortex-a8 #-march=armv7-a + fi else check_add_cflags -march=${tgt_isa}