Permalink
Browse files

Ensure the built fox16.so is striped, since that is not the default f…

…or Ruby 1.9.3
  • Loading branch information...
1 parent 8f891e1 commit 2c7f323d13c53ef941e0d0ba5745b7dda8d898d5 @larskanis committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/fox16/extconf.rb
View
2 ext/fox16/extconf.rb
@@ -81,7 +81,7 @@ def do_rake_compiler_setup
CONFIG['CC'] += "\nCXX=#{ENV['CROSS_PREFIX']}-g++" # Hack CXX into Makefile for cross compilation
CONFIG['LDSHARED'].gsub!('gcc', 'g++') # ensure C++ linker is used, so that libstdc++ is linked static
- $LDFLAGS += " -static-libgcc -static-libstdc++" # mingw-w64 v4.7 defaults to dynamic linking
+ $LDFLAGS += " -s -static-libgcc -static-libstdc++" # mingw-w64 v4.7 defaults to dynamic linking
elsif RUBY_PLATFORM =~ /mingw/
$CFLAGS = $CFLAGS + " -I/usr/local/include"
$LDFLAGS = $LDFLAGS + " -I/usr/local/lib"

0 comments on commit 2c7f323

Please sign in to comment.