Skip to content

Commit 9788bcb

Browse files
committed
Update darwin flat_namespace filter to match all appropriate rubies
1 parent f994b95 commit 9788bcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile.mri.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ RUN find /usr/local/rake-compiler/ruby -name rbconfig.rb | while read f ; do sed
166166
<% if platform =~ /darwin/ %>
167167
# ruby-3.2+ on darwin links with `-bundle_loader`,
168168
# - see https://github.com/rake-compiler/rake-compiler-dock/issues/87
169-
# - note that we do this for "3.[2-9].0" to match rubies 3.2 and later
170-
# - and we add a "*" on the end for "3.[2-9].0*" to match prereleases like "3.3.0+0"
171-
RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby/3.[2-9].0* -name rbconfig.rb | \
169+
# - note that we do this for "3.[2-9].*" to match rubies 3.2 and later
170+
# - and we use a "*" on the end instead of a digit to match prereleases like "3.3.0+0"
171+
RUN find /usr/local/rake-compiler/ruby/*/*/lib/ruby/3.[2-9].* -name rbconfig.rb | \
172172
while read f ; do sed -i 's/\["EXTDLDFLAGS"\] = "/&-Wl,-flat_namespace /' $f ; done
173173
<% end %>
174174

0 commit comments

Comments
 (0)