Fix for ELF machines from drahn@, ok krw@

Taking maintainer, ok krw@ & espie@
This commit is contained in:
couderc 2002-06-29 13:39:26 +00:00
parent 45dbff910a
commit 80017ea49d
3 changed files with 28 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2002/03/24 22:38:50 brad Exp $
# $OpenBSD: Makefile,v 1.21 2002/06/29 13:39:26 couderc Exp $
COMMENT= object oriented script language with threads
VERSION= 1.6.7
@ -17,7 +17,7 @@ DISTFILES= ${BINARCH} ${MANARCH}:0
EXTRACT_ONLY= ${BINARCH}
HOMEPAGE= http://www.ruby-lang.org/
MAINTAINER= Ken Westerback <krw@openbsd.org>
MAINTAINER= Damien Couderc <couderc@openbsd.org>
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_FTP= Yes

View File

@ -1,7 +1,16 @@
$OpenBSD: patch-configure_in,v 1.2 2002/02/23 14:10:48 krw Exp $
--- configure.in.orig Tue Dec 4 05:51:50 2001
+++ configure.in Thu Feb 21 16:42:03 2002
@@ -556,7 +556,7 @@ if test "$with_dln_a_out" != yes; then
$OpenBSD: patch-configure_in,v 1.3 2002/06/29 13:39:26 couderc Exp $
--- configure.in.orig Wed Feb 6 10:13:15 2002
+++ configure.in Sat Jun 29 15:26:26 2002
@@ -477,7 +477,7 @@ case "$target_os" in
else
LDFLAGS="-rdynamic"
fi;;
-netbsd*)
+netbsd*|openbsd*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
netbsd_elf=yes
@@ -566,7 +566,7 @@ if test "$with_dln_a_out" != yes; then
LDFLAGS="-Wl,-export-dynamic"
fi
rb_cv_dlopen=yes ;;
@ -10,7 +19,7 @@ $OpenBSD: patch-configure_in,v 1.2 2002/02/23 14:10:48 krw Exp $
rb_cv_dlopen=yes ;;
bsdi3*) case "$CC" in
*shlicc*) LDSHARED="$CC -r"
@@ -832,7 +832,8 @@ if test "$enable_shared" = 'yes'; then
@@ -842,7 +842,8 @@ if test "$enable_shared" = 'yes'; then
;;
openbsd*)
SOLIBS='$(LIBS)'

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-dln_c,v 1.1 2002/06/29 13:39:26 couderc Exp $
--- dln.c.orig Sat Jun 29 15:27:00 2002
+++ dln.c Sat Jun 29 15:30:14 2002
@@ -87,7 +87,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_%.200s"
# else
# define FUNCNAME_PATTERN "Init_%.200s"