Add ruby
[kopensolaris-gnu/patches.git] / ruby.diff
1
2 http://redmine.ruby-lang.org/issues/show/1120
3
4 Index: configure.in
5 ===================================================================
6 --- configure.in        (revision 22091)
7 +++ configure.in        (working copy)
8 @@ -1294,7 +1294,7 @@
9  fi
10  
11  case "$target_os" in
12 -linux* | gnu* | k*bsd*-gnu | bsdi*)
13 +linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu)
14      if test "$rb_cv_binary_elf" = no; then
15         with_dln_a_out=yes
16      else
17 @@ -1381,7 +1381,7 @@
18                         *shlicc*)       : ${LDSHARED="$CC -r"}
19                                         rb_cv_dlopen=yes ;;
20                         esac ;;
21 -       linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi*)
22 +       linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu)
23                         : ${LDSHARED='${CC} -shared'}
24                         if test "$rb_cv_binary_elf" = yes; then
25                             LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
26 @@ -1572,7 +1572,7 @@
27  fi
28  
29  case "$target_os" in
30 -  linux* | gnu* | k*bsd*-gnu)
31 +  linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
32         STRIP='strip -S -x';;
33    nextstep*)
34         STRIP='strip -A -n';;
35 @@ -1722,7 +1722,7 @@
36      sunos4*)
37         LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
38         ;;
39 -    linux* | gnu* | k*bsd*-gnu | atheos*)
40 +    linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu)
41         LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'
42         LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
43         ;;