>>>>> "D" == David Garamond <lists / zara.6.isreserved.com> writes: D> I wanted to statically link libruby.so because I intend to distribute D> plruby.so to machines where there might not be Ruby installed (or Ruby D> might installed in a different location). Though thinking about it D> again, I realize I can always distribute libruby.so along... :) Try this svg% diff -ru plruby-0.3.9 plruby-0.4.0 diff -ru plruby-0.3.9/extconf.rb plruby-0.4.0/extconf.rb --- plruby-0.3.9/extconf.rb 2004-02-29 15:28:55.000000000 +0100 +++ plruby-0.4.0/extconf.rb 2004-03-05 15:05:12.000000000 +0100 @@ -2,6 +2,7 @@ ARGV.collect! {|x| x.sub(/\A--with-pgsql-prefix=/, "--with-pgsql-dir=") x.sub(/\A--enable-conversion\z/, "--enable-basic") + x.sub(/\A--((?:en|dis)able)-shared\z/) { "--#$1-plruby-shared" } } orig_argv = ARGV.dup @@ -216,6 +217,10 @@ begin Dir.chdir("src") + if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && + !enable_config("plruby-shared") + $LIBRUBYARG = "" + end $objs = ["plruby.o"] unless $objs create_makefile("plruby#{suffix}") version.sub!(/\.\d/, '') diff -ru plruby-0.3.9/src/conversions/basic/extconf.rb plruby-0.4.0/src/conversions/basic/extconf.rb --- plruby-0.3.9/src/conversions/basic/extconf.rb 2004-02-28 17:06:05.000000000 +0100 +++ plruby-0.4.0/src/conversions/basic/extconf.rb 2004-03-05 15:00:21.000000000 +0100 @@ -1,3 +1,7 @@ require 'mkmf' +if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && + !enable_config("plruby-shared") + $LIBRUBYARG = "" +end create_makefile('plruby/plruby_basic') diff -ru plruby-0.3.9/src/conversions/geometry/extconf.rb plruby-0.4.0/src/conversions/geometry/extconf.rb --- plruby-0.3.9/src/conversions/geometry/extconf.rb 2004-02-28 17:07:21.000000000 +0100 +++ plruby-0.4.0/src/conversions/geometry/extconf.rb 2004-03-05 15:00:54.000000000 +0100 @@ -1,3 +1,7 @@ require 'mkmf' +if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && + !enable_config("plruby-shared") + $LIBRUBYARG = "" +end create_makefile('plruby/plruby_geometry') diff -ru plruby-0.3.9/src/conversions/network/extconf.rb plruby-0.4.0/src/conversions/network/extconf.rb --- plruby-0.3.9/src/conversions/network/extconf.rb 2004-02-28 17:07:07.000000000 +0100 +++ plruby-0.4.0/src/conversions/network/extconf.rb 2004-03-05 15:00:42.000000000 +0100 @@ -1,3 +1,7 @@ require 'mkmf' +if CONFIG["LIBRUBYARG"] == "$(LIBRUBYARG_SHARED)" && + !enable_config("plruby-shared") + $LIBRUBYARG = "" +end create_makefile('plruby/plruby_network') svg% and use --disable-shared Guy Decoux