1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in (XLDFLAGS): link startup code with ObjC support.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-13 09:48:45 +00:00
parent 98697d3617
commit 231fdd86ae
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Sep 13 18:48:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (XLDFLAGS): link startup code with ObjC support.
Sun Sep 13 13:38:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca> Sun Sep 13 13:38:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* thread.c (recursive_*): refactored the access to the inspect * thread.c (recursive_*): refactored the access to the inspect

View file

@ -1892,6 +1892,7 @@ else
when(hpux*) when(hpux*)
DLEXT=sl;; DLEXT=sl;;
when(nextstep*|openstep*|rhapsody*|darwin*) when(nextstep*|openstep*|rhapsody*|darwin*)
RUBY_APPEND_OPTION(XLDFLAGS, [-Wl,-u,_objc_msgSend])
DLEXT=bundle;; DLEXT=bundle;;
when(os2-emx*) when(os2-emx*)
LOAD_RELATIVE=1 LOAD_RELATIVE=1

View file

@ -1289,8 +1289,7 @@ static char *dln_libs_to_be_linked[] = { EXTLIB, 0 };
#endif #endif
#if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__) #if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__)
/* to link startup code with ObjC support */ #define RUBY_GLOBAL_SETUP /* use linker option to link startup code with ObjC support */
#define RUBY_GLOBAL_SETUP static void objcdummyfunction(void) {objc_msgSend();}
#else #else
#define RUBY_GLOBAL_SETUP #define RUBY_GLOBAL_SETUP
#endif #endif