diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index f27088cf89..6440a7c2dd 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -391,7 +391,7 @@ def using_system_libraries? do_clean end -if openbsd? +if openbsd? && !using_system_libraries? ENV['CC'] ||= find_executable('egcc') or abort "Please install gcc 4.9+ from ports using `pkg_add -v gcc`" end