diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2014-11-14 11:51:01 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2014-11-14 11:51:01 +0000 |
commit | ccd0c19d67e0b85fd0a92bb31147b264aa35f9f2 (patch) | |
tree | d2599416e96672ed321d386f7738e759344d9883 /multimedia/libvpx/patches | |
parent | a5fc54f128190090aeb076420d36b9b623e02b65 (diff) | |
download | pkgsrc-ccd0c19d67e0b85fd0a92bb31147b264aa35f9f2.tar.gz |
NetBSD ARMv7 hardfloat build fix
Diffstat (limited to 'multimedia/libvpx/patches')
-rw-r--r-- | multimedia/libvpx/patches/patch-ad | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/multimedia/libvpx/patches/patch-ad b/multimedia/libvpx/patches/patch-ad index eee08414f11..b0361a123c5 100644 --- a/multimedia/libvpx/patches/patch-ad +++ b/multimedia/libvpx/patches/patch-ad @@ -1,12 +1,22 @@ -$NetBSD: patch-ad,v 1.15 2014/05/15 12:00:04 martin Exp $ +$NetBSD: patch-ad,v 1.16 2014/11/14 11:51:01 jmcneill Exp $ *BSD and qnx are identified as linux. Add another SDK path on Mac OS X. All sparc cpus can not do unaligned access. +Detect NetBSD ARMv7 hardfloat toolchain. ---- build/make/configure.sh.orig 2013-12-17 18:05:18.000000000 +0100 -+++ build/make/configure.sh 2014-05-15 13:11:08.000000000 +0200 -@@ -665,7 +665,7 @@ +--- build/make/configure.sh.orig 2013-12-17 17:05:18.000000000 +0000 ++++ build/make/configure.sh +@@ -604,7 +604,7 @@ process_common_toolchain() { + armv6*) + tgt_isa=armv6 + ;; +- armv7*-hardfloat*) ++ armv7*-hardfloat*|armv7*-netbsd*-*hf) + tgt_isa=armv7 + float_abi=hard + ;; +@@ -665,7 +665,7 @@ process_common_toolchain() { [ -z "$tgt_isa" ] && tgt_isa=x86 tgt_os=win32 ;; @@ -15,7 +25,7 @@ All sparc cpus can not do unaligned access. tgt_os=linux ;; *solaris2.10) -@@ -704,6 +704,7 @@ +@@ -704,6 +704,7 @@ process_common_toolchain() { case ${tgt_isa} in arm*) enable_feature arm;; mips*) enable_feature mips;; @@ -23,7 +33,7 @@ All sparc cpus can not do unaligned access. esac # PIC is probably what we want when building shared libs -@@ -799,7 +800,7 @@ +@@ -799,7 +800,7 @@ process_common_toolchain() { case ${tgt_cc} in gcc) @@ -32,7 +42,7 @@ All sparc cpus can not do unaligned access. link_with_cc=gcc setup_gnu_toolchain arch_int=${tgt_isa##armv} -@@ -988,8 +989,6 @@ +@@ -988,8 +989,6 @@ EOF check_add_cflags -mips32r2 -mdspr2 disable_feature fast_unaligned fi @@ -41,7 +51,7 @@ All sparc cpus can not do unaligned access. check_add_asflags -KPIC ;; ppc*) -@@ -1219,7 +1218,7 @@ +@@ -1219,7 +1218,7 @@ EOF check_cc <<EOF unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E'; EOF @@ -50,7 +60,7 @@ All sparc cpus can not do unaligned access. grep '4f *32 *42 *45' >/dev/null 2>&1 && enable_feature big_endian # Try to find which inline keywords are supported -@@ -1235,10 +1234,32 @@ +@@ -1235,10 +1234,32 @@ EOF case ${toolchain} in *-win*-vs*);; *-android-gcc);; |