pkgsrc/lang/ruby193-base/patches/patch-configure

67 lines
1.8 KiB
Text
Raw Normal View History

Importing ruby193-base version 1.9.3p0 (Ruby 1.9.3 p0): Please refer detail for: http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/ChangeLog Short summary from NEWS: * Ruby's License is changed from a dual license with GPLv2 to a dual license with 2-clause BSDL. * Encoding * new encodings: CP950, CP951, UTF-16 and UTF-32 * change alias: * SJIS is Windows-31J * Regexps now support Unicode 6.0. (new characters and scripts) * builtin classes * ARGF * new methods: ARGF.read_nonblock and so on. * Array * extended method: Array#pack supports endian modifiers * String * extended method: String#unpack supports endian modifiers * new method: String#prepend and String#byteslice * Bignum * Multiplication algorithm for Bignums with a large number of digits over 150 BDIGITs is changed in order to reduce its calculation time. Now such large Bignums are multiplied by using Toom-3 algorithm. * File * new constant: File::NULL and File::DIRECT * IO * extended method: IO#putc supports multibyte characters * new methods: * IO#advise, IO.write and IO.binwrite * Kernel * move #__id__ to BasicObject * extended method: Kernel#rand supports range argument * Module * new methods: Module#private_constant and Module#public_constant * Random * extended method: Random.rand supports range argument * Time * extended method: Time#strftime supports %:z and %::z * Process * Process#maxgroups and Process#maxgroups= now raise NotImplementedError if the platform don't support supplementary groups concept
2011-11-08 17:10:51 +01:00
$NetBSD: patch-configure,v 1.1.1.1 2011/11/08 16:10:51 taca Exp $
* Adding Interix support.
* Ignore doxygen.
--- configure.orig 2011-10-30 09:55:52.000000000 +0000
+++ configure
@@ -10464,6 +10464,9 @@ esac
superux*) :
ac_cv_func_setitimer=no
;; #(
+ interix*) LIBS="-lm $LIBS"
+ ac_cv_func_getpgrp_void=yes
+ ;; #(
*) :
LIBS="-lm $LIBS" ;;
esac
@@ -16021,8 +16024,12 @@ esac ;; #(
rb_cv_dlopen=yes ;; #(
interix*) :
: ${LDSHARED='$(CC) -shared'}
+ LDFLAGS="$LDFLAGS -Wl,-E"
XLDFLAGS="$XLDFLAGS -Wl,-E"
+ # use special random-slot linkage in 0x[56]XXXXXXX
LIBPATHFLAG=" -L%1\$-s"
+ DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))'
+ RPATHFLAG=' -Wl,-R%1$-s'
rb_cv_dlopen=yes ;; #(
freebsd*|dragonfly*) :
@@ -16626,7 +16633,12 @@ esac
;; #(
interix*) :
- LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
+ SOLIBS='$(LIBS)'
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
+ # link explicitly to 0x48000000
+ LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552'
+ LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)'
+ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so'
;; #(
*) :
;;
@@ -16689,11 +16701,7 @@ if test "$install_doc" != no; then
else
RDOCTARGET="nodoc"
fi
- if test "$install_capi" != no -a -n "$DOXYGEN"; then
- CAPITARGET="capi"
- else
- CAPITARGET="nodoc"
- fi
+ CAPITARGET="nodoc"
else
RDOCTARGET="nodoc"
CAPITARGET="nodoc"
@@ -17593,7 +17601,7 @@ ac_config_files="$ac_config_files $FIRST
ac_config_files="$ac_config_files Makefile"
-ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc"
+ruby_pc="${RUBY_BASE_NAME}-${RUBY_PROGRAM_VERSION}.pc"
exec=exec