ext/arrow/extconf.rb in red-arrow-10.0.1 vs ext/arrow/extconf.rb in red-arrow-11.0.0

- old
+ new

@@ -36,12 +36,10 @@ else false end end -$CXXFLAGS += " -std=c++17 " - unless required_pkg_config_package([ "arrow", Arrow::Version::MAJOR, Arrow::Version::MINOR, Arrow::Version::MICRO, @@ -73,8 +71,22 @@ ].each do |name, relative_source_dir| spec = find_gem_spec(name) source_dir = File.join(spec.full_gem_path, relative_source_dir) build_dir = source_dir add_depend_package_path(name, source_dir, build_dir) +end + +case RUBY_PLATFORM +when /darwin/ + symbols_in_external_bundles = [ + "_rbgerr_gerror2exception", + "_rbgobj_instance_from_ruby_object", + ] + symbols_in_external_bundles.each do |symbol| + $DLDFLAGS << " -Wl,-U,#{symbol}" + end + mmacosx_version_min = "-mmacosx-version-min=10.14" + $CFLAGS << " #{mmacosx_version_min}" + $CXXFLAGS << " #{mmacosx_version_min}" end create_makefile("arrow")