Skip to content

Commit ead8580

Browse files
authored
[Runner] Fix inclusion of lib64 for PowerPC64 with GCC 6 (#333)
1 parent c6ccb74 commit ead8580

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Runner.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,8 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
542542
end
543543

544544
function gcc_link_flags!(p::AbstractPlatform, flags::Vector{String} = String[])
545-
# Yes, it does seem that the inclusion of `/lib64` on `powerpc64le` was fixed
546-
# in GCC 6, broken again in GCC 7, and then fixed again for GCC 8 and 9
547-
if arch(p) == "powerpc64le" && Sys.islinux(p) && gcc_version.major in (4, 5, 7)
545+
# Inclusion of `/lib64` on `powerpc64le` was fixed in GCC 8+.
546+
if arch(p) == "powerpc64le" && Sys.islinux(p) && 4 <= gcc_version.major <= 7
548547
append!(flags, String[
549548
"-L/opt/$(aatriplet(p))/$(aatriplet(p))/sys-root/lib64",
550549
"-Wl,-rpath-link,/opt/$(aatriplet(p))/$(aatriplet(p))/sys-root/lib64",

0 commit comments

Comments
 (0)