1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

configure.in: compress debug sections

* configure.in (DLDFLAGS): append --compress-debug-sections=zlib
  if available, which reduces the size of LIBRUBY_SO by half or
  more.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-10-18 07:36:42 +00:00
parent 5f69a2e5a4
commit a40d95c48f
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Tue Oct 18 16:36:40 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (DLDFLAGS): append --compress-debug-sections=zlib
if available, which reduces the size of LIBRUBY_SO by half or
more.
Mon Oct 17 16:20:37 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/configure.bat: add option to enable/disable to install

View file

@ -912,6 +912,13 @@ if test "$GCC" = yes; then
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
fi
RUBY_TRY_LDFLAGS(${linker_flag}--compress-debug-sections=zlib,
[compress_debug_sections=yes],
[compress_debug_sections=no])
if test "x$compress_debug_sections" = xyes; then
RUBY_APPEND_OPTION(DLDFLAGS, ${linker_flag}--compress-debug-sections=zlib)
fi
AS_CASE(["$target_os"],[mingw*], [
# On Windows platforms, system provided headers are VC++
# optimized. That is, C++ habits are often contaminated into
@ -3893,6 +3900,10 @@ AS_CASE("$enable_shared", [yes], [
[mingw*|cygwin*|mswin*], [
LIBRUBY_RELATIVE=yes
])
if test "x$compress_debug_sections" = xyes; then
RUBY_APPEND_OPTION(LIBRUBY_DLDFLAGS, ${linker_flag}--compress-debug-sections=zlib)
fi
], [
LIBRUBYARG_SHARED=