ports/net/ruby-mpi/files/patch-configure
2006-01-17 13:16:03 +00:00

13 lines
612 B
Text

--- 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