diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-16 06:07:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-16 06:07:55 +0000 |
commit | 42c8a2b5dd88dd922be63125fbc05aa73c75870b (patch) | |
tree | 5fc3ce07d7f76b6f64d659430b23176385973944 /configure.in | |
parent | 22143c3883c90f0a7f4f11c59ac8f348af38a323 (diff) | |
download | ruby-42c8a2b5dd88dd922be63125fbc05aa73c75870b.tar.gz |
configure.in: compressed debug section option
* configure.in: make compressed debug section optional.
[ruby-core:78121] [Bug #12934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/configure.in b/configure.in index fea39e2986..bdfed91135 100644 --- a/configure.in +++ b/configure.in @@ -888,6 +888,11 @@ for n in infinity nan; do fi done +AC_ARG_WITH(compress-debug-sections, + AS_HELP_STRING([--with-compress-debug-sections=type], + [enable debug section compression]), + [compress_debug_sections=$withval], [compress_debug_sections=]) + if test "$GCC" = yes; then # NaCl's glibc build generates undefined references to __memset_chk. # TODO(sbc): Remove this once NaCl's glibc is fixed. @@ -917,11 +922,14 @@ 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], + AS_CASE("${compress_debug_sections:-zlib}", + [none|no], [], [ + RUBY_TRY_LDFLAGS(${linker_flag}--compress-debug-sections=${compress_debug_sections:-zlib}, + [compress_debug_sections=${compress_debug_sections:-zlib}], [compress_debug_sections=no]) - if test "x$compress_debug_sections" = xyes; then - RUBY_APPEND_OPTION(DLDFLAGS, ${linker_flag}--compress-debug-sections=zlib) + ]) + if test "x$compress_debug_sections" != xno; then + RUBY_APPEND_OPTION(DLDFLAGS, ${linker_flag}--compress-debug-sections=$compress_debug_sections) fi AS_CASE(["$target_os"],[mingw*], [ |