gnu: openjdk9: Fix build on aarch64.
* gnu/packages/java.scm (openjdk9)[arguments]: Add 'patch-for-aarch64 phase to remove duplicate line in interp_masm_aarch64.hpp. Signed-off-by: Andreas Enge <andreas@enge.fr>
parent
f22c20e7ca
commit
9ca9b0afb6
|
@ -884,6 +884,18 @@ new Date();"))
|
||||||
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
,@(if (target-aarch64?)
|
||||||
|
`((add-after 'unpack 'patch-for-aarch64
|
||||||
|
(lambda _
|
||||||
|
(substitute* "hotspot/src/cpu/aarch64/vm/interp_masm_aarch64.hpp"
|
||||||
|
;; This line is duplicated, so remove both occurrences,
|
||||||
|
;; then add back one occurrence by substituting a
|
||||||
|
;; comment that occurs once.
|
||||||
|
(("using MacroAssembler::call_VM_leaf_base;") "")
|
||||||
|
(("Interpreter specific version of call_VM_base")
|
||||||
|
"Interpreter specific version of call_VM_base
|
||||||
|
using MacroAssembler::call_VM_leaf_base;")))))
|
||||||
|
'())
|
||||||
(add-after 'patch-source-shebangs 'fix-java-shebangs
|
(add-after 'patch-source-shebangs 'fix-java-shebangs
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This file was "fixed" by patch-source-shebangs, but it requires
|
;; This file was "fixed" by patch-source-shebangs, but it requires
|
||||||
|
|
Reference in New Issue