Skip to content

Commit

Permalink
* configure.in: Set SOLIBS properly for all ELF and
Browse files Browse the repository at this point in the history
  FreeBSD/NetBSD/OpenBSD a.out platforms so that the shlib
  dependencies are recorded in the libruby shlib.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Mar 16, 2001
1 parent 1fd502c commit 7f74a38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Mar 16 17:14:17 2001 Akinori MUSHA <[email protected]>

* configure.in: Set SOLIBS properly for all ELF and
FreeBSD/NetBSD/OpenBSD a.out platforms so that the shlib
dependencies are recorded in the libruby shlib.

Wed Mar 14 16:41:45 2001 Yukihiro Matsumoto <[email protected]>

* eval.c (rb_thread_schedule): raise FATAL just once to
Expand Down
8 changes: 8 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,9 @@ if test "$enable_shared" = 'yes'; then
LIBRUBYARG='-L. -l$(RUBY_INSTALL_NAME)'
CFLAGS="$CFLAGS $CCDLFLAGS"
ENABLE_SHARED=yes
if test "$rb_cv_binary_elf" = yes; then
SOLIBS='$(LIBS)'
fi
case "$target_os" in
sunos4*)
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so'
Expand All @@ -828,20 +831,25 @@ if test "$enable_shared" = 'yes'; then
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so'
;;
freebsd*)
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR)'
if test "$rb_cv_binary_elf" != "yes" ; then
LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
LIBRUBY_ALIASES=''
fi
;;
netbsd*)
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
if test "$rb_cv_binary_elf" = yes; then # ELF platforms
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
else
LIBRUBY_ALIASES= # a.out platforms
fi
;;
openbsd*)
SOLIBS='$(LIBS)'
;;
solaris*)
XLDFLAGS='-R${prefix}/lib'
;;
Expand Down

0 comments on commit 7f74a38

Please sign in to comment.