Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libvpx/files: libvpx-1.0.0-support-arm.patch
Date: Sun, 04 Mar 2012 17:22:29
Message-Id: 20120304172219.71E422004C@flycatcher.gentoo.org
1 lu_zero 12/03/04 17:22:19
2
3 Added: libvpx-1.0.0-support-arm.patch
4 Log:
5 Remove overzealous assumption regarding arm, unbreak compilation
6
7 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-libs/libvpx/files/libvpx-1.0.0-support-arm.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libvpx/files/libvpx-1.0.0-support-arm.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libvpx/files/libvpx-1.0.0-support-arm.patch?rev=1.1&content-type=text/plain
14
15 Index: libvpx-1.0.0-support-arm.patch
16 ===================================================================
17 --- build/make/configure.sh.old 2012-03-04 17:22:12.968222061 +0100
18 +++ build/make/configure.sh 2012-03-04 17:24:36.905216824 +0100
19 @@ -549,6 +549,9 @@
20 *sparc*)
21 tgt_isa=sparc
22 ;;
23 + *armv7*)
24 + tgt_isa=armv7
25 + ;;
26 esac
27
28 # detect tgt_os
29 @@ -680,7 +683,6 @@
30
31 case ${tgt_cc} in
32 gcc)
33 - CROSS=${CROSS:-arm-none-linux-gnueabi-}
34 link_with_cc=gcc
35 setup_gnu_toolchain
36 arch_int=${tgt_isa##armv}
37 @@ -689,8 +691,8 @@
38 tune_cflags="-mtune="
39 if enabled armv7
40 then
41 - check_add_cflags -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-ftree-vectorize
42 - check_add_asflags -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-march=armv7-a
43 + check_add_cflags -mfpu=neon
44 + check_add_asflags -mfpu=neon
45 else
46 check_add_cflags -march=${tgt_isa}
47 check_add_asflags -march=${tgt_isa}