From 2b8485bc89d8f79dc33e635a006d5230414b3506 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Dec 2012 04:18:13 +0000 Subject: configure.in, mkmf.rb: sign extensions * configure.in (codesign): check identifier at link time, not configure time. * lib/mkmf.rb (LINK_SO): sign extensions too. replace empty line with default command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index c916cd5834..ba5273a082 100644 --- a/configure.in +++ b/configure.in @@ -1214,9 +1214,11 @@ main() if test "$rb_cv_broken_crypt" = yes; then AC_DEFINE(BROKEN_CRYPT, 1) fi - if test "${RUBY_CODESIGN:+set}"; then - AC_CHECK_PROGS(codesign, codesign) - POSTLINK="$ac_cv_prog_codesign -s '$RUBY_CODESIGN' -f \$@" + AC_CHECK_PROGS(codesign, codesign) + if test -n "$codesign"; then + POSTLINK="test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@" + LINK_SO="$LINK_SO +$POSTLINK" fi ], [hpux*], [ LIBS="-lm $LIBS" -- cgit v1.2.3