summaryrefslogtreecommitdiff
path: root/textproc/ruby-eruby/patches/patch-ab
blob: 76b61f844191f1e631c10b4f9e75d18b4c6b0502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-ab,v 1.3 2005/02/17 15:11:23 taca Exp $

--- configure.rb.in.orig	2003-01-20 16:22:41.000000000 +0900
+++ configure.rb.in
@@ -47,27 +47,22 @@ $LIBERUBY_A = "liberuby.a"
 $LIBERUBY = "${LIBERUBY_A}"
 $LIBERUBYARG="$(LIBERUBY_A)"
 
-$LIBERUBY_SO = "liberuby.#{CONFIG['DLEXT']}.$(MAJOR).$(MINOR).$(TEENY)"
-$LIBERUBY_ALIASES = "liberuby.#{CONFIG['DLEXT']}"
+$LIBERUBY_SO = "liberuby.#{CONFIG['DLEXT']}.$(MAJOR_MINOR)"
+$LIBERUBY_ALIASES = "liberuby.so.$(MAJOR_MINOR).$(TEENY) liberuby.so"
 
 if $ENABLE_SHARED
   $LIBERUBY = "${LIBERUBY_SO}"
   $LIBERUBYARG = "-L. -leruby"
   case PLATFORM
-  when /-sunos4/
-    $LIBERUBY_ALIASES = "liberuby.so.$(MAJOR).$(MINOR) liberuby.so"
   when /-linux/
-    $DLDFLAGS = '-Wl,-soname,liberuby.so.$(MAJOR).$(MINOR)'
-    $LIBERUBY_ALIASES = "liberuby.so.$(MAJOR).$(MINOR) liberuby.so"
+    $DLDFLAGS = '-Wl,-soname,liberuby.so.$(MAJOR_MINOR)'
   when /-(freebsd|netbsd)/
-    $LIBERUBY_SO = "liberuby.so.$(MAJOR).$(MINOR)"
-    if PLATFORM =~ /elf/ || PLATFORM =~ /-freebsd[3-9]/
+    if PLATFORM =~ /elf/ and PLATFORM =~ /-freebsd[3-9]/
       $LIBERUBY_SO = "liberuby.so.$(MAJOR_MINOR)"
       $LIBERUBY_ALIASES = "liberuby.so"
-    else
-      $LIBERUBY_ALIASES = "liberuby.so.$(MAJOR) liberuby.so"
     end
   when /-solaris/
+    $DLDFLAGS = "#{$DLDFLAGS} "'-Wl,-h,liberuby.so.$(MAJOR_MINOR)'
     $XLDFLAGS = "-R$(prefix)/lib"
   when /-hpux/
     $XLDFLAGS = "-Wl,+s,+b,$(prefix)/lib"