summaryrefslogtreecommitdiff
path: root/net/ruby-mpi
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-01-17 13:16:03 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-01-17 13:16:03 +0000
commit570c968cfefccb6bbb9ccb27710621d3c6c47ae2 (patch)
tree2d421dbb109f2103d366276fd7021d07040e9ecb /net/ruby-mpi
parent* Fix a problem with -pthread not being picked up by some systems. (diff)
- Fix configure patch to properly pick up needed libraries
Reported by: krismail
Notes
Notes: svn path=/head/; revision=153730
Diffstat (limited to 'net/ruby-mpi')
-rw-r--r--net/ruby-mpi/files/patch-configure19
1 files changed, 6 insertions, 13 deletions
diff --git a/net/ruby-mpi/files/patch-configure b/net/ruby-mpi/files/patch-configure
index 3dbaef35b36a..6e993ef6c1f5 100644
--- a/net/ruby-mpi/files/patch-configure
+++ b/net/ruby-mpi/files/patch-configure
@@ -1,20 +1,13 @@
---- configure-orig Sun Apr 24 22:32:31 2005
-+++ configure Sun Apr 24 22:32:47 2005
-@@ -2778,7 +2778,7 @@
- { echo "$as_me:$LINENO: WARNING: Could not find Config Ruby module. Assuming CFLAGS and LIBS for Ruby are in standard path..." >&5
- echo "$as_me: WARNING: Could not find Config Ruby module. Assuming CFLAGS and LIBS for Ruby are in standard path..." >&2;}
- RUBY_CFLAGS=""
-- RUBY_LIBS="-lruby"
-+ RUBY_LIBS="-lruby18"
- else
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
-@@ -2792,7 +2792,7 @@
+--- 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="-lruby18 -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