From: ts Date: 2004-03-05T19:57:20+09:00 Subject: Re: plruby: --enable-static-ruby / --disable-shared ? >>>>> "D" == David Garamond writes: D> What about adding these configure option, so plruby.so doesn't need D> libruby.so at all? But sorry, I'm still not sure how to modify D> extconf.rb to accomplish this. In the Makefile I just replace LIBS= D> $(LIBRUBYARG_SHARED) with $(LIBRUBYARG_STATIC). What is your version of plruby and ruby ? svg% ruby extconf.rb --with-pgsql-dir=$HOME/local/pgsql checking for ruby_init() in -lruby-static... yes checking for catalog/pg_proc.h... yes checking for PQsetdbLogin() in -lpq... yes checking for rb_hash_delete()... yes checking for server/utils/array.h... yes creating Makefile ======================================================================== After the installation use something like this to create the language plruby create function plruby_call_handler() returns language_handler as '/usr/local/lib/ruby/site_ruby/1.8/i686-linux/plruby.so' language 'C'; create trusted language 'plruby' handler plruby_call_handler lancompiler 'PL/Ruby'; ======================================================================== svg% svg% grep LIBS src/Makefile LOCAL_LIBS = LIBS = -lpq -lruby-static -ldl -lcrypt -lm -lc CLEANLIBS = "$(TARGET).{lib,exp,il?,tds,map}" $(DLLIB) @$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $(DLLIB) $(OBJS) $(LOCAL_LIBS) $(LIBS) svg% Guy Decoux