mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
13969a2b5d
commit
708f1e74b7
1 changed files with 12 additions and 4 deletions
16
configure.in
16
configure.in
|
@ -888,6 +888,11 @@ for n in infinity nan; do
|
||||||
fi
|
fi
|
||||||
done
|
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
|
if test "$GCC" = yes; then
|
||||||
# NaCl's glibc build generates undefined references to __memset_chk.
|
# NaCl's glibc build generates undefined references to __memset_chk.
|
||||||
# TODO(sbc): Remove this once NaCl's glibc is fixed.
|
# 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)
|
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUBY_TRY_LDFLAGS(${linker_flag}--compress-debug-sections=zlib,
|
AS_CASE("${compress_debug_sections:-zlib}",
|
||||||
[compress_debug_sections=yes],
|
[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])
|
[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
|
fi
|
||||||
|
|
||||||
AS_CASE(["$target_os"],[mingw*], [
|
AS_CASE(["$target_os"],[mingw*], [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue