Skip to content

Commit

Permalink
Merge pull request #1580 from jeremyevans/openbsd
Browse files Browse the repository at this point in the history
Only require ports GCC on OpenBSD if not using system libraries (Fixes #1515)
  • Loading branch information
knu authored Jan 10, 2017
2 parents efd3553 + e2c8c8e commit 93e4a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e4a30

Please sign in to comment.