Skip to content

Commit f9126fa

Browse files
committed
openjdk@8: update RPATH for ARM linux
1 parent 86eeeb5 commit f9126fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Formula/o/[email protected]

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ def install
172172
--with-fontconfig=#{HOMEBREW_PREFIX}
173173
--with-stdc++lib=dynamic
174174
]
175-
extra_rpath = rpath(source: libexec/"lib/amd64", target: libexec/"jre/lib/amd64")
175+
arch = Hardware::CPU.arm? ? "aarch64" : "amd64"
176+
extra_rpath = rpath(source: libexec/"lib"/arch, target: libexec/"jre/lib"/arch)
176177
ldflags << "-Wl,-rpath,#{extra_rpath.gsub("$", "\\$$$$")}"
177178
end
178179
args << "--with-extra-ldflags=#{ldflags.join(" ")}"

0 commit comments

Comments
 (0)