From 570c968cfefccb6bbb9ccb27710621d3c6c47ae2 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 17 Jan 2006 13:16:03 +0000 Subject: [PATCH] - Fix configure patch to properly pick up needed libraries Reported by: krismail --- net/ruby-mpi/files/patch-configure | 19 ++++++------------- 1 file 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