PKGBUILDs/community/nodejs/0001-arm-fixes.patch

53 lines
1.8 KiB
Diff
Raw Normal View History

2015-10-14 03:02:05 +00:00
From 3248eca016badde88fe1f8cb97c08344ee182a23 Mon Sep 17 00:00:00 2001
2015-09-17 00:01:46 +00:00
From: Kevin Mihelich <kevin@archlinuxarm.org>
2015-10-14 03:02:05 +00:00
Date: Tue, 13 Oct 2015 20:45:53 -0600
2015-09-17 00:01:46 +00:00
Subject: [PATCH] arm fixes
---
2015-10-14 03:02:05 +00:00
configure | 5 ++++-
2015-09-17 00:01:46 +00:00
deps/v8/build/toolchain.gypi | 4 ++--
2015-10-14 03:02:05 +00:00
2 files changed, 6 insertions(+), 3 deletions(-)
2015-09-17 00:01:46 +00:00
diff --git a/configure b/configure
2015-10-14 03:02:05 +00:00
index b4936f1..53192eb 100755
2015-09-17 00:01:46 +00:00
--- a/configure
+++ b/configure
2015-10-14 03:02:05 +00:00
@@ -626,8 +626,11 @@ def configure_arm(o):
2015-09-17 00:01:46 +00:00
if is_arch_armv7():
2015-10-14 03:02:05 +00:00
arm_fpu = 'vfpv3'
2015-09-17 00:01:46 +00:00
o['variables']['arm_version'] = '7'
+ elif is_arch_armv6():
+ o['variables']['arm_version'] = '6'
2015-10-14 03:02:05 +00:00
else:
- o['variables']['arm_version'] = '6' if is_arch_armv6() else 'default'
2015-09-17 00:01:46 +00:00
+ o['variables']['arm_fpu'] = ''
+ o['variables']['arm_version'] = '5'
o['variables']['arm_thumb'] = 0 # -marm
o['variables']['arm_float_abi'] = arm_float_abi
diff --git a/deps/v8/build/toolchain.gypi b/deps/v8/build/toolchain.gypi
index 4dbf42b..8d3e968 100644
--- a/deps/v8/build/toolchain.gypi
+++ b/deps/v8/build/toolchain.gypi
@@ -203,7 +203,7 @@
}],
[ 'arm_version==7 or arm_version=="default"', {
'conditions': [
- [ 'arm_fpu!="default"', {
+ [ 'arm_fpu!="default" and arm_fpu!=""', {
'cflags': ['-mfpu=<(arm_fpu)',],
}],
],
@@ -246,7 +246,7 @@
}],
[ 'arm_version==7 or arm_version=="default"', {
'conditions': [
- [ 'arm_fpu!="default"', {
+ [ 'arm_fpu!="default" and arm_fpu!=""', {
'cflags': ['-mfpu=<(arm_fpu)',],
}],
],
--
2015-10-14 03:02:05 +00:00
2.6.1
2015-09-17 00:01:46 +00:00