Skip to content

Commit

Permalink
wip: try to resolve symbols properly on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 23, 2022
1 parent 8b7fa3f commit 45f194a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,11 @@ def do_clean
cross_build_p = config_cross_build?
message "Cross build is #{cross_build_p ? "enabled" : "disabled"}.\n"

if cross_build_p && darwin?
# testing
append_ldflags("-Wl,-flat_namespace")
end

require "yaml"
dependencies = YAML.load_file(File.join(PACKAGE_ROOT_DIR, "dependencies.yml"))

Expand Down
2 changes: 1 addition & 1 deletion rakelib/extensions.rake
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ namespace "gem" do
desc "build native gem for #{plat} platform"
task plat do
RakeCompilerDock.sh(<<~EOT, platform: plat, verbose: true)
rvm use 3.1.0 &&
ruby -v &&
gem install bundler --no-document &&
bundle &&
bundle exec rake gem:#{plat}:builder MAKE='nice make -j`nproc`'
Expand Down

0 comments on commit 45f194a

Please sign in to comment.