summaryrefslogtreecommitdiff
path: root/net/ruby-mpi/files/patch-configure
blob: 6e993ef6c1f549c164aee3a98c8a1f16efff4639 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- configure.orig	Mon Jun 30 14:10:21 2003
+++ configure	Tue Jan 17 14:03:02 2006
@@ -2791,8 +2791,9 @@
 echo "${ECHO_T}$RUBY_CFLAGS" >&6
 	echo "$as_me:$LINENO: checking ruby LIBS" >&5
 echo $ECHO_N "checking ruby LIBS... $ECHO_C" >&6
+	RUBY_LIBS=`ruby -e "require 'rbconfig'" -e "print '-l' + Config::MAKEFILE_CONFIG['RUBY_SO_NAME'] + ' ' + Config::MAKEFILE_CONFIG['LIBS']"`
 	RB_LIB_DIR=`$RUBY -e 'require "rbconfig"; puts Config::CONFIG["libdir"]'`
-	RUBY_LIBS="-lruby -L$RB_LIB_DIR"
+	RUBY_LIBS="$RUBY_LIBS -L$RB_LIB_DIR"
 	echo "$as_me:$LINENO: result: $RUBY_LIBS" >&5
 echo "${ECHO_T}$RUBY_LIBS" >&6
 fi