diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index 2cce4d9dcbd..7af21c3a717 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? && !ENV['CC'] unless find_executable 'egcc' message "please install gcc 4.9+ from ports using `pkg_add -v gcc`\n" exit! 1