ext/arrow/extconf.rb in red-arrow-17.0.0 vs ext/arrow/extconf.rb in red-arrow-18.0.0
- old
+ new
@@ -64,10 +64,17 @@
msys2: "arrow",
redhat: "arrow-glib-devel")
exit(false)
end
+# Old re2.pc (e.g. re2.pc on Ubuntu 20.04) may add -std=c++11. It
+# causes a build error because Apache Arrow C++ requires C++17 or
+# later.
+#
+# We can remove this when we drop support for Ubuntu 20.04.
+$CXXFLAGS.gsub!("-std=c++11", "")
+
[
["glib2", "ext/glib2"],
].each do |name, relative_source_dir|
spec = find_gem_spec(name)
source_dir = File.join(spec.full_gem_path, relative_source_dir)
@@ -82,10 +89,10 @@
"_rbgobj_instance_from_ruby_object",
]
symbols_in_external_bundles.each do |symbol|
$DLDFLAGS << " -Wl,-U,#{symbol}"
end
- mmacosx_version_min = "-mmacosx-version-min=10.15"
+ mmacosx_version_min = "-mmacosx-version-min=12.0"
$CFLAGS << " #{mmacosx_version_min}"
$CXXFLAGS << " #{mmacosx_version_min}"
end
create_makefile("arrow")