diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-10 04:18:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-10 04:18:13 +0000 |
commit | 2b8485bc89d8f79dc33e635a006d5230414b3506 (patch) | |
tree | fc71477d153ec64f163110933b333e0549063827 /configure.in | |
parent | 08b98cc317801f7ec836472524b8150ac4dbd3b4 (diff) | |
download | ruby-2b8485bc89d8f79dc33e635a006d5230414b3506.tar.gz |
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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 5 insertions, 3 deletions
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" |