Skip to content

Commit

Permalink
Strip cross built shared library files while linking (#165)
Browse files Browse the repository at this point in the history
The .so files of extensions are often manually stripped after compilation per task in a Rakefile.
This is done to reduce gem size and because debug information in release binaries isn't particular useful.
This manual step can be avoided, if the cross ruby version is built with stripping enabled.
Compatibility is ensured, since stripping files a second time doesn't make a difference.
  • Loading branch information
larskanis authored and kou committed Dec 27, 2019
1 parent ad5ff46 commit 2079532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/bin/cross-ruby.rake
Expand Up @@ -113,7 +113,8 @@ file "#{build_dir}/Makefile" => [build_dir, source_dir] do |t|
"--build=#{RUBY_BUILD}",
'--enable-shared',
'--disable-install-doc',
'--with-ext='
'--with-ext=',
'LDFLAGS=-pipe -s',
]

# Force Winsock2 for Ruby 1.8, 1.9 defaults to it
Expand Down

0 comments on commit 2079532

Please sign in to comment.