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

* configure.in (darwin): uses -unexported_symbol option of ld instead

of objcopy


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-02-19 05:39:55 +00:00
parent c59107a9fa
commit e2f6281302
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Thu Feb 19 14:24:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
Thu Feb 19 14:39:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (darwin): uses -unexported_symbol option of ld instead
of objcopy
* configure.in (darwin): makes dylib instead of so.

View file

@ -241,7 +241,7 @@ ASFLAGS=$ASFLAGS
AC_SUBST(ASFLAGS)
case "$target_os" in
when(cygwin*|mingw*)
when(cygwin*|mingw*|darwin*)
ac_cv_prog_ac_ct_OBJCOPY=":";;
esac
@ -1833,7 +1833,10 @@ 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_DLDFLAGS='-install_name $(libdir)/lib$(RUBY_SO_NAME).dylib -current_version $(MAJOR).$(MINOR).$(TEENY) -compatibility_version $(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_DLDFLAGS='-install_name $(libdir)/lib$(RUBY_SO_NAME).dylib'
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-current_version $(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-compatibility_version $(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_Init_* $(XLDFLAGS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).dylib.$(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).dylib lib$(RUBY_INSTALL_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_INSTALL_NAME).dylib'
;;