[前][次][番号順一覧][スレッド一覧]

ruby-changes:44739

From: nobu <ko1@a...>
Date: Wed, 16 Nov 2016 15:07:58 +0900 (JST)
Subject: [ruby-changes:44739] nobu:r56812 (trunk): configure.in: compressed debug section option

nobu	2016-11-16 15:07:55 +0900 (Wed, 16 Nov 2016)

  New Revision: 56812

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56812

  Log:
    configure.in: compressed debug section option
    
    * configure.in: make compressed debug section optional.
      [ruby-core:78121] [Bug #12934]

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 56811)
+++ configure.in	(revision 56812)
@@ -888,6 +888,11 @@ for n in infinity nan; do https://github.com/ruby/ruby/blob/trunk/configure.in#L888
     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 https://github.com/ruby/ruby/blob/trunk/configure.in#L922
 	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*], [

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]