Skip to content

Commit

Permalink
Cut down on some warnings on OSX.
Browse files Browse the repository at this point in the history
  • Loading branch information
dark-panda committed Mar 1, 2013
1 parent 750cbbb commit 59d2b59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/extconf.rb
Expand Up @@ -9,7 +9,8 @@
# object
# $libs = append_library($libs, "supc++") # doesn't work
if RbConfig::CONFIG["arch"] =~ /-darwin\d/
RbConfig::CONFIG['LDSHARED']="g++ -dynamic -bundle -undefined suppress -flat_namespace"
$warnflags << ' -Wno-shorten-64-to-32' if $warnflags
RbConfig::CONFIG['LDSHARED'] = "g++ -dynamic -bundle -undefined suppress -flat_namespace"
else
RbConfig::CONFIG['LDSHARED'] = "g++ -shared"
end
Expand Down

0 comments on commit 59d2b59

Please sign in to comment.