d804a7a92f
in Makefile. Bump PKGREVISION.
37 lines
1.4 KiB
Text
37 lines
1.4 KiB
Text
$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"
|