summaryrefslogtreecommitdiff
path: root/lang/ruby/patches/patch-ad
diff options
context:
space:
mode:
authoritojun <itojun>2000-01-22 13:31:44 +0000
committeritojun <itojun>2000-01-22 13:31:44 +0000
commit53e86ca4f50f81401ba6227c3000860740834409 (patch)
tree99504d9b4de760564529d98c11961e89173e3f22 /lang/ruby/patches/patch-ad
parente864a644b93cc3798666ce8ade2fa188af9d00a8 (diff)
downloadpkgsrc-53e86ca4f50f81401ba6227c3000860740834409.tar.gz
fix ELF platform support (configure.in patch missed one of clauses)
enable IPv6 on USE_INET6. approved by: sakamoto (maintainer)
Diffstat (limited to 'lang/ruby/patches/patch-ad')
-rw-r--r--lang/ruby/patches/patch-ad29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/ruby/patches/patch-ad b/lang/ruby/patches/patch-ad
new file mode 100644
index 00000000000..fb913db3135
--- /dev/null
+++ b/lang/ruby/patches/patch-ad
@@ -0,0 +1,29 @@
+$NetBSD: patch-ad,v 1.1 2000/01/22 13:31:46 itojun Exp $
+
+--- ext/socket/extconf.rb- Thu Jan 20 02:50:06 2000
++++ ext/socket/extconf.rb Thu Jan 20 02:52:52 2000
+@@ -41,6 +41,7 @@
+ $ipv6type = nil
+ $ipv6lib = nil
+ $ipv6libdir = nil
++$ipv6trylibc = nil
+ if $ipv6
+ if egrep_cpp("yes", <<EOF)
+ #include <netinet/in.h>
+@@ -59,6 +60,7 @@
+ $ipv6type = "kame"
+ $ipv6lib="inet6"
+ $ipv6libdir="/usr/local/v6/lib"
++ $ipv6trylibc=true
+ $CFLAGS="-DINET6 "+$CFLAGS
+ elsif File.directory? "/usr/inet6"
+ $ipv6type = "linux"
+@@ -100,7 +102,7 @@
+ if $ipv6lib
+ if File.directory? $ipv6libdir and File.exist? "#{$ipv6libdir}/lib#{$ipv6lib}.a"
+ $LOCAL_LIBS = " -L#$ipv6libdir -l#$ipv6lib"
+- else
++ elsif !$ipv6trylibc
+ print <<EOS
+
+ Fatal: no #$ipv6lib library found. cannot continue.