ruby-changes:46944
From: nobu <ko1@a...>
Date: Sun, 11 Jun 2017 14:37:02 +0900 (JST)
Subject: [ruby-changes:46944] nobu:r59058 (trunk): configure.in: link the DWARF debug information
nobu 2017-06-11 14:36:56 +0900 (Sun, 11 Jun 2017) New Revision: 59058 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59058 Log: configure.in: link the DWARF debug information Modified files: trunk/Makefile.in trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 59057) +++ configure.in (revision 59058) @@ -1203,9 +1203,16 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.in#L1203 if test "$rb_cv_broken_crypt" = yes; then AC_DEFINE(BROKEN_CRYPT, 1) fi + POSTLINK="" AC_CHECK_PROGS(codesign, codesign) + AC_CHECK_PROGS(dsymutil, dsymutil) if test -n "$codesign"; then - POSTLINK="test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@" + POSTLINK="{ test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@; }${POSTLINK:+; $POSTLINK}" + fi + if test -n "$dsymutil"; then + POSTLINK="$dsymutil \$@${POSTLINK:+; $POSTLINK}" + fi + if test -n "${POSTLINK}"; then LINK_SO="$LINK_SO \$(POSTLINK)" fi Index: Makefile.in =================================================================== --- Makefile.in (revision 59057) +++ Makefile.in (revision 59058) @@ -225,6 +225,7 @@ miniruby$(EXEEXT): https://github.com/ruby/ruby/blob/trunk/Makefile.in#L225 @-if test -f $@; then $(MV) -f $@ $@.old; $(RM) $@.old; fi $(ECHO) linking $@ $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(MAINLIBS) $(LIBS) $(OUTFLAG)$@ + $(Q) $(POSTLINK) $(PROGRAM): @$(RM) $@ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/