From: Tilman Sauerbeck Date: Mon, 18 Oct 2004 20:16:11 +0000 (+0000) Subject: Link to the correct Ruby shared object. X-Git-Url: http://git.code-monkey.de/?p=ruby-evas.git;a=commitdiff_plain;h=4a90635e368695b8b800e0b3814a20dacd676fcf Link to the correct Ruby shared object. --- diff --git a/m4/ac_ruby_ext.m4 b/m4/ac_ruby_ext.m4 index 90a3383..da81116 100644 --- a/m4/ac_ruby_ext.m4 +++ b/m4/ac_ruby_ext.m4 @@ -40,6 +40,11 @@ AC_DEFUN([AC_RUBY_EXT], [ AC_MSG_ERROR(Ruby site extension path not found) fi + AC_MSG_CHECKING(for Ruby shared library) + RUBYLIB=`($rubybin -rmkmf -e 'print Config::CONFIG[["LIBRUBYARG_SHARED"]]') 2> /dev/null` + AC_MSG_RESULT([$RUBYLIB]) + + AC_SUBST(RUBYLIB) AC_SUBST(RUBYLIBDIR) AC_SUBST(RUBYDIR) AC_SUBST(RUBYSITEDIR) diff --git a/src/Makefile.am b/src/Makefile.am index 57e38e3..860f5b8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am 73 2004-08-16 18:11:52Z tilman $ +## $Id: Makefile.am 118 2004-10-18 20:16:11Z tilman $ AM_CFLAGS = $(EVAS_CFLAGS) INCLUDES = -I$(RUBYDIR) @@ -17,7 +17,7 @@ evas_la_SOURCES = rb_evas_main.c rb_evas_main.h \ rb_text.c rb_text.h \ rb_smart.c rb_smart.h -evas_la_LIBADD = -L$(RUBYLIBDIR) -lruby $(EVAS_LIBS) +evas_la_LIBADD = -L$(RUBYLIBDIR) $(RUBYLIB) $(EVAS_LIBS) evas_la_LDFLAGS = -module -avoid-version pkgincludedir = $(RUBYSITEDIR)/evas