Skip to content

Commit

Permalink
ext: allow libpthread in linux native platform gems
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 17, 2023
1 parent e6314df commit 69a94a1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions rakelib/extensions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,16 @@ CrossRuby = Struct.new(:version, :platform) do
"libm.so.6",
"libc.so.6",
"libdl.so.2", # on old dists only - now in libc
].tap do |dlls|
dlls << "libpthread.so.0" if ver >= "3.2.0"
end
"libpthread.so.0", # on old dists only - now in libc
]
when AARCH_LINUX_PLATFORM_REGEX
[
"libm.so.6",
"libc.so.6",
"libdl.so.2", # on old dists only - now in libc
"libpthread.so.0", # on old dists only - now in libc
"ld-linux-aarch64.so.1",
].tap do |dlls|
dlls << "libpthread.so.0" if ver >= "3.2.0"
end
]
when DARWIN_PLATFORM_REGEX
[
"/usr/lib/libSystem.B.dylib",
Expand All @@ -188,12 +186,11 @@ CrossRuby = Struct.new(:version, :platform) do
when ARM_LINUX_PLATFORM_REGEX
[
"libm.so.6",
"libdl.so.2",
"libc.so.6",
"libdl.so.2", # on old dists only - now in libc
"libpthread.so.0", # on old dists only - now in libc
"ld-linux-armhf.so.3",
].tap do |dlls|
dlls << "libpthread.so.0" if ver >= "3.2.0"
end
]
else
raise "CrossRuby.allowed_dlls: unmatched platform: #{platform}"
end
Expand Down

0 comments on commit 69a94a1

Please sign in to comment.