summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in2
-rw-r--r--weechat/configure.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index cabf4b9e5..b3b1bae10 100644
--- a/configure.in
+++ b/configure.in
@@ -231,7 +231,7 @@ if test "x$enable_ruby" = "xyes" ; then
# TODO: check that ruby lib and headers are installed
RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"`
- RUBY_LFLAGS=-L`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` -lruby
+ RUBY_LFLAGS=`ruby -rrbconfig -e "puts Config::CONFIG[['LIBRUBYARG_SHARED']]"`
PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/ruby/lib_weechat_ruby.a $RUBY_LFLAGS"
AC_SUBST(RUBY_CFLAGS)
AC_DEFINE(PLUGIN_RUBY)
diff --git a/weechat/configure.in b/weechat/configure.in
index cabf4b9e5..b3b1bae10 100644
--- a/weechat/configure.in
+++ b/weechat/configure.in
@@ -231,7 +231,7 @@ if test "x$enable_ruby" = "xyes" ; then
# TODO: check that ruby lib and headers are installed
RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"`
- RUBY_LFLAGS=-L`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` -lruby
+ RUBY_LFLAGS=`ruby -rrbconfig -e "puts Config::CONFIG[['LIBRUBYARG_SHARED']]"`
PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/ruby/lib_weechat_ruby.a $RUBY_LFLAGS"
AC_SUBST(RUBY_CFLAGS)
AC_DEFINE(PLUGIN_RUBY)