Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/webkit2-gtk4: Fix build on aarch64
Approved by: portmgr (build fix blanket)
- Loading branch information
1 parent
3a364df
commit 0ecefb7
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
www/webkit2-gtk4/files/patch-Source_JavaScriptCore_offlineasm_arm64.rb
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,11 @@ | ||
--- Source/JavaScriptCore/offlineasm/arm64.rb.orig 2021-09-22 23:05:58 UTC | ||
+++ Source/JavaScriptCore/offlineasm/arm64.rb | ||
@@ -1127,7 +1127,7 @@ class Instruction | ||
$asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, #{operands[0].asmLabel}@GOTPAGEOFF]" | ||
|
||
# On Linux, use ELF GOT relocation specifiers. | ||
- $asm.putStr("#elif OS(LINUX)") | ||
+ $asm.putStr("#elif OS(LINUX) || OS(FREEBSD)") | ||
$asm.puts "adrp #{operands[1].arm64Operand(:quad)}, :got:#{operands[0].asmLabel}" | ||
$asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, :got_lo12:#{operands[0].asmLabel}]" | ||
|