ext/re2/extconf.rb in re2-1.2.0 vs ext/re2/extconf.rb in re2-1.3.0
- old
+ new
@@ -14,10 +14,22 @@
if ENV["CXX"]
RbConfig::MAKEFILE_CONFIG["CXX"] = ENV["CXX"]
RbConfig::CONFIG["CXX"] = ENV["CXX"]
end
-incl, lib = dir_config("re2", "/usr/local/include", "/usr/local/lib")
+header_dirs = [
+ "/usr/local/include",
+ "/opt/homebrew/include",
+ "/usr/include"
+]
+
+lib_dirs = [
+ "/usr/local/lib",
+ "/opt/homebrew/lib",
+ "/usr/lib"
+]
+
+dir_config("re2", header_dirs, lib_dirs)
$CFLAGS << " -Wall -Wextra -funroll-loops"
# Pass -x c++ to force gcc to compile the test program
# as C++ (as it will end in .c by default).