forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
two fixes and now actually builds on armv7hf:
- mips, ppc and arm platforms want -latomic, so provide it - link -larm on netbsd/arm to find arm_sync_icache()
- Loading branch information
mrg
committed
Oct 17, 2020
1 parent
1df151e
commit 8e20b73
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$NetBSD: patch-tools_v8_gypfiles_v8.gyp,v 1.1 2020/10/17 21:48:41 mrg Exp $ | ||
|
||
Add -larm on netbsd arm platforms. | ||
|
||
--- tools/v8_gypfiles/v8.gyp.orig 2020-10-07 10:47:43.000000000 -0700 | ||
+++ tools/v8_gypfiles/v8.gyp 2020-10-17 13:16:57.485883322 -0700 | ||
@@ -903,6 +903,12 @@ | ||
}], | ||
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library | ||
# to implement atomic memory access | ||
+ # NetBSD/arm also needs -larm. | ||
+ ['OS == "netbsd" and v8_current_cpu in ["arm"]', { | ||
+ 'link_settings': { | ||
+ 'libraries': ['-larm', ], | ||
+ }, | ||
+ }], | ||
['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', { | ||
'link_settings': { | ||
'libraries': ['-latomic', ], |