From 48d18d3783924e912ec0d298a035cc08c9e3b675 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Apr 2009 10:39:27 +0000 Subject: [PATCH] * 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/trunk@23113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38b5849dd5..c523be0ffe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 1 19:39:25 2009 Nobuyoshi Nakada + + * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc. + a patch from Wataru Kimura at [ruby-dev:38225]. + Wed Apr 1 18:53:51 2009 Nobuyoshi Nakada * vm_dump.c (rb_vm_bugreport): should not #include inside a diff --git a/configure.in b/configure.in index 5f9a004c77..32027a7c81 100644 --- a/configure.in +++ b/configure.in @@ -1667,7 +1667,7 @@ if test "$with_dln_a_out" != yes; then when(rhapsody*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'} : ${LDFLAGS=""} rb_cv_dlopen=yes ;; - when(darwin*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress -flat_namespace'} + when(darwin*) : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace'} : ${LDFLAGS=""} : ${LIBPATHENV=DYLD_LIBRARY_PATH} # /usr/local/include is always searched for @@ -1988,7 +1988,7 @@ if test "$enable_shared" = 'yes'; then ;; when(darwin*) RUBY_SO_NAME="$RUBY_SO_NAME"'.$(MAJOR).$(MINOR).$(TEENY)' - LIBRUBY_LDSHARED='cc -dynamiclib -undefined suppress -flat_namespace' + LIBRUBY_LDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace' if test "$load_relative" = yes; then libprefix='@executable_path/../lib' else