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

53 lines
1.8 KiB
Diff
Raw Normal View History

2016-01-21 05:03:47 +00:00
From 5bbe0af1be3af18793e3062bfd4f26bd194af88a 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
2016-01-21 05:03:47 +00:00
index 00f20f7..464c7c8 100755
2015-09-17 00:01:46 +00:00
--- a/configure
+++ b/configure
2016-01-21 05:03:47 +00:00
@@ -636,8 +636,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
2016-01-21 05:03:47 +00:00
index a8a3b56..a03cd13 100644
2015-09-17 00:01:46 +00:00
--- 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)',],
}],
],
--
2016-01-21 05:03:47 +00:00
2.7.0
2015-09-17 00:01:46 +00:00