Skip to content

Commit 2f8aea1

Browse files
authored
Merge pull request #184 from ahorek/strip_fix
Restore strip symbols
2 parents 8378681 + aadad46 commit 2f8aea1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/extconf.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
$srcs = Dir['libsass/src/**/*.{c,cpp}']
5959
end
6060

61+
# libsass.bundle malformed object (unknown load command 7) on Mac OS X
62+
# See https://github.com/sass/sassc-ruby/pull/174
63+
if enable_config('strip', RbConfig::CONFIG['host_os'].downcase !~ /darwin/)
64+
MakeMakefile::LINK_SO << "\nstrip -x $@"
65+
end
66+
6167
# Don't link libruby.
6268
$LIBRUBYARG = nil
6369

0 commit comments

Comments
 (0)