ruby-changes:13143
From: nobu <ko1@a...>
Date: Sun, 13 Sep 2009 18:49:01 +0900 (JST)
Subject: [ruby-changes:13143] Ruby:r24894 (trunk): * configure.in (XLDFLAGS): link startup code with ObjC support.
nobu 2009-09-13 18:48:45 +0900 (Sun, 13 Sep 2009) New Revision: 24894 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24894 Log: * configure.in (XLDFLAGS): link startup code with ObjC support. Modified files: trunk/ChangeLog trunk/configure.in trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 24893) +++ include/ruby/ruby.h (revision 24894) @@ -1289,8 +1289,7 @@ #endif #if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__) -/* to link startup code with ObjC support */ -#define RUBY_GLOBAL_SETUP static void objcdummyfunction(void) {objc_msgSend();} +#define RUBY_GLOBAL_SETUP /* use linker option to link startup code with ObjC support */ #else #define RUBY_GLOBAL_SETUP #endif Index: configure.in =================================================================== --- configure.in (revision 24893) +++ configure.in (revision 24894) @@ -1892,6 +1892,7 @@ when(hpux*) DLEXT=sl;; when(nextstep*|openstep*|rhapsody*|darwin*) + RUBY_APPEND_OPTION(XLDFLAGS, [-Wl,-u,_objc_msgSend]) DLEXT=bundle;; when(os2-emx*) LOAD_RELATIVE=1 Index: ChangeLog =================================================================== --- ChangeLog (revision 24893) +++ ChangeLog (revision 24894) @@ -1,3 +1,7 @@ +Sun Sep 13 18:48:43 2009 Nobuyoshi Nakada <nobu@r...> + + * configure.in (XLDFLAGS): link startup code with ObjC support. + Sun Sep 13 13:38:00 2009 Marc-Andre Lafortune <ruby-core@m...> * thread.c (recursive_*): refactored the access to the inspect -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/