зеркало из https://github.com/github/ruby.git
configure.in: link the DWARF debug information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a53f6d710b
Коммит
751cbd7d3e
|
@ -225,6 +225,7 @@ miniruby$(EXEEXT):
|
|||
@-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) $@
|
||||
|
|
|
@ -1203,9 +1203,16 @@ main()
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче