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:
parent
653b0c120f
commit
969bb67169
3 changed files with 15 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* array.c (rb_ary_transpose): Properly declare ary as a VALUE.
|
||||
|
|
10
configure.in
10
configure.in
|
@ -662,7 +662,7 @@ linux*)
|
|||
else
|
||||
LDFLAGS="-rdynamic"
|
||||
fi;;
|
||||
netbsd*)
|
||||
netbsd*|openbsd*)
|
||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||
then
|
||||
netbsd_elf=yes
|
||||
|
@ -758,7 +758,10 @@ if test "$with_dln_a_out" != yes; then
|
|||
LIBPATHFLAG=' -L%1$-s -Wl,-R%1$-s'
|
||||
fi
|
||||
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 ;;
|
||||
bsdi3*) case "$CC" in
|
||||
*shlicc*) LDSHARED="$CC -r"
|
||||
|
@ -1056,7 +1059,8 @@ if test "$enable_shared" = 'yes'; then
|
|||
;;
|
||||
openbsd*)
|
||||
SOLIBS='$(LIBS)'
|
||||
;;
|
||||
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
|
||||
;;
|
||||
solaris*)
|
||||
XLDFLAGS='-R${libdir}'
|
||||
;;
|
||||
|
|
2
dln.c
2
dln.c
|
@ -97,7 +97,7 @@ int eaccess();
|
|||
#endif
|
||||
|
||||
#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"
|
||||
# else
|
||||
# define FUNCNAME_PATTERN "Init_%s"
|
||||
|
|
Loading…
Reference in a new issue