diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-01 06:45:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-01 06:45:55 +0000 |
commit | bbdc6783420d3ced703baf1020171be8682f2808 (patch) | |
tree | ff0cdb0a611566289d5d125e16fdff1720238a3d | |
parent | 87d469b150755831f773c6a90829f7a128749c7a (diff) |
* configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc.
a patch from Wataru Kimura at [ruby-dev:38225].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri May 1 15:45:53 2009 Nobuyoshi Nakada <[email protected]> + + * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc. + a patch from Wataru Kimura at [ruby-dev:38225]. + Fri May 1 13:12:39 2009 Nobuyoshi Nakada <[email protected]> * eval.c, gc.c (_longjmp): never return. see [ruby-core:23241] diff --git a/configure.in b/configure.in index fd20bd799b..a442896e01 100644 --- a/configure.in +++ b/configure.in @@ -1243,7 +1243,7 @@ if test "$with_dln_a_out" != yes; then rhapsody*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'} : ${LDFLAGS=""} rb_cv_dlopen=yes ;; - darwin*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress -flat_namespace'} + darwin*) : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace'} : ${LDFLAGS=""} : ${LIBPATHENV=DYLD_LIBRARY_PATH} # /usr/local/include is always searched for @@ -1576,7 +1576,7 @@ if test "$enable_shared" = 'yes'; then ;; darwin*) LIBRUBY_SO='lib$(RUBY_SO_NAME).$(MAJOR).$(MINOR).$(TEENY).dylib' - LIBRUBY_LDSHARED='cc -dynamiclib -undefined suppress -flat_namespace' + LIBRUBY_LDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace' LIBRUBY_DLDFLAGS='-install_name $(libdir)/lib$(RUBY_SO_NAME).dylib -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(MAJOR).$(MINOR)' LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_SO_NAME).dylib' ;; |