Browse files

Merge pull request #1115 from zenspider/osx-archflags

Fix for stock ruby 2.0.0 on osx 10.9. Fixes #1101.
  • Loading branch information...
2 parents 0104f62 + d9b63d2 commit a1776955ad066a28ab7fb7c659cfc9fa0925a1ef @tenderlove tenderlove committed Jun 13, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/nokogiri/extconf.rb
View
3 ext/nokogiri/extconf.rb
@@ -311,6 +311,9 @@ def patch
$CFLAGS << " -DXP_WIN -DXP_WIN32 -DUSE_INCLUDED_VASPRINTF"
when /solaris/
$CFLAGS << " -DUSE_INCLUDED_VASPRINTF"
+when /darwin/
+ # TODO: maybe make it stricter to only work on stock ruby? How to tell?
+ $CFLAGS << " -Wno-error=unused-command-line-argument-hard-error-in-future"
else
$CFLAGS << " -g -DXP_UNIX"
end

0 comments on commit a177695

Please sign in to comment.