- Fix configure patch to properly pick up needed libraries

Reported by:	krismail
This commit is contained in:
Pav Lucistnik 2006-01-17 13:16:03 +00:00
parent 1b021e1742
commit 570c968cfe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153730

View file

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