summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorsakamoto <sakamoto@pkgsrc.org>1999-09-22 12:33:28 +0000
committersakamoto <sakamoto@pkgsrc.org>1999-09-22 12:33:28 +0000
commit7208f28e56041b2b2c1d7da6ef779a81a3fbe896 (patch)
tree9d949ba24e7db31ef06b329140484650cfb10f2b /lang
parent59f733bb67e784e89468176cda461873e1c33884 (diff)
downloadpkgsrc-7208f28e56041b2b2c1d7da6ef779a81a3fbe896.tar.gz
Fix symbol prefix '_'
and link libruby.so.1.4 for ext libraries with ELF system.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/files/patch-sum5
-rw-r--r--lang/ruby/patches/patch-aa11
-rw-r--r--lang/ruby/patches/patch-ab21
-rw-r--r--lang/ruby/patches/patch-ac21
4 files changed, 58 insertions, 0 deletions
diff --git a/lang/ruby/files/patch-sum b/lang/ruby/files/patch-sum
new file mode 100644
index 00000000000..eefa9489749
--- /dev/null
+++ b/lang/ruby/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1 1999/09/22 12:33:28 sakamoto Exp $
+
+MD5 (patch-aa) = c7b1eeb320f5af1a046d884b7b520526
+MD5 (patch-ab) = e132c46af84d0969cf0e00f6ffb95bac
+MD5 (patch-ac) = b7598f85460293ac502d0d9c81260e2b
diff --git a/lang/ruby/patches/patch-aa b/lang/ruby/patches/patch-aa
new file mode 100644
index 00000000000..75f5a6a728d
--- /dev/null
+++ b/lang/ruby/patches/patch-aa
@@ -0,0 +1,11 @@
+$NetBSD: patch-aa,v 1.1 1999/09/22 12:33:29 sakamoto Exp $
+
+--- ./dln.c.orig Fri Aug 13 14:45:03 1999
++++ ./dln.c Wed Sep 22 19:51:42 1999
+@@ -81,5 +81,5 @@
+
+ #ifndef FUNCNAME_PATTERN
+-# if defined(__hp9000s300) || (defined(__NetBSD__) && (!defined(__alpha__) && !defined(__mips__))) || defined(__BORLANDC__) || (defined(__FreeBSD__) && __FreeBSD__ < 3) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__)
++# if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__BORLANDC__) || (defined(__FreeBSD__) && __FreeBSD__ < 3) || defined(NeXT) || defined(__WATCOMC__) || defined(__APPLE__)
+ # define FUNCNAME_PATTERN "_Init_%.200s"
+ # else
diff --git a/lang/ruby/patches/patch-ab b/lang/ruby/patches/patch-ab
new file mode 100644
index 00000000000..ce1c8b18171
--- /dev/null
+++ b/lang/ruby/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 1999/09/22 12:33:30 sakamoto Exp $
+
+--- ./configure.in.orig Mon Aug 30 16:00:47 1999
++++ ./configure.in Wed Sep 22 19:51:42 1999
+@@ -680,9 +680,11 @@
+ netbsd*)
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
+- case "$host_cpu" in
+- alpha|mipsel|mipseb|powerpc|sparc64) # ELF platforms
+- LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so' ;;
+- *) LIBRUBY_ALIASES= ;; # a.out platforms
+- esac
++ rb_cv_netbsd_elf=`echo|cc -E -v - 2>&1 |grep __ELF__`
++ if test "x$rb_cv_netbsd_elf" != "x" ; then
++ LIBRUBYARG='$(LIBRUBY_SO)'
++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
++ else
++ LIBRUBY_ALIASES=''
++ fi
+ ;;
+ solaris*)
diff --git a/lang/ruby/patches/patch-ac b/lang/ruby/patches/patch-ac
new file mode 100644
index 00000000000..23c32abde08
--- /dev/null
+++ b/lang/ruby/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 1999/09/22 12:33:30 sakamoto Exp $
+
+--- ./configure.orig Mon Aug 30 23:14:28 1999
++++ ./configure Wed Sep 22 19:53:16 1999
+@@ -4581,9 +4581,11 @@
+ netbsd*)
+ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
+- case "$host_cpu" in
+- alpha|mipsel|mipseb|powerpc|sparc64) # ELF platforms
+- LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so' ;;
+- *) LIBRUBY_ALIASES= ;; # a.out platforms
+- esac
++ rb_cv_netbsd_elf=`echo|cc -E -v - 2>&1 |grep __ELF__`
++ if test "x$rb_cv_netbsd_elf" != "x" ; then
++ LIBRUBYARG='$(LIBRUBY_SO)'
++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
++ else
++ LIBRUBY_ALIASES=''
++ fi
+ ;;
+ solaris*)