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

* configure.in: Improve OpenBSD support. [obtained from: OpenBSD

ports]

* dln.c (FUNCNAME_PATTERN): Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2002-12-31 10:53:14 +00:00
parent 653b0c120f
commit 969bb67169
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Tue Dec 31 19:48:21 2002 Akinori MUSHA <knu@iDaemons.org>
* configure.in: Improve OpenBSD support. [obtained from: OpenBSD
ports]
* dln.c (FUNCNAME_PATTERN): Ditto.
Tue Dec 31 19:21:02 2002 Akinori MUSHA <knu@iDaemons.org> Tue Dec 31 19:21:02 2002 Akinori MUSHA <knu@iDaemons.org>
* array.c (rb_ary_transpose): Properly declare ary as a VALUE. * array.c (rb_ary_transpose): Properly declare ary as a VALUE.

View file

@ -662,7 +662,7 @@ linux*)
else else
LDFLAGS="-rdynamic" LDFLAGS="-rdynamic"
fi;; fi;;
netbsd*) netbsd*|openbsd*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then then
netbsd_elf=yes netbsd_elf=yes
@ -758,7 +758,10 @@ if test "$with_dln_a_out" != yes; then
LIBPATHFLAG=' -L%1$-s -Wl,-R%1$-s' LIBPATHFLAG=' -L%1$-s -Wl,-R%1$-s'
fi fi
rb_cv_dlopen=yes ;; rb_cv_dlopen=yes ;;
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable" openbsd*) LDSHARED="\$(CC) -shared ${CCDLFLAGS}"
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="-Wl,-E"
fi
rb_cv_dlopen=yes ;; rb_cv_dlopen=yes ;;
bsdi3*) case "$CC" in bsdi3*) case "$CC" in
*shlicc*) LDSHARED="$CC -r" *shlicc*) LDSHARED="$CC -r"
@ -1056,7 +1059,8 @@ if test "$enable_shared" = 'yes'; then
;; ;;
openbsd*) openbsd*)
SOLIBS='$(LIBS)' SOLIBS='$(LIBS)'
;; LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
;;
solaris*) solaris*)
XLDFLAGS='-R${libdir}' XLDFLAGS='-R${libdir}'
;; ;;

2
dln.c
View file

@ -97,7 +97,7 @@ int eaccess();
#endif #endif
#ifndef FUNCNAME_PATTERN #ifndef FUNCNAME_PATTERN
# if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && !defined(__ELF__)) || defined(__OpenBSD__) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__) # if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && !defined(__ELF__)) || (defined(__OpenBSD__) && !defined(__ELF__)) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__)
# define FUNCNAME_PATTERN "_Init_%s" # define FUNCNAME_PATTERN "_Init_%s"
# else # else
# define FUNCNAME_PATTERN "Init_%s" # define FUNCNAME_PATTERN "Init_%s"