From: Ian Macdonald Date: 2002-06-19T09:26:30+09:00 Subject: Re: mkmf and extconf.rb On Wed 19 Jun 2002 at 07:40:34 +0900, Ian Macdonald wrote: > I'm using the mkmf module to create a Makefile for a C extension I'm > writing. Unfortunately, when I create the Makefile using > 'create_makefile('foo')' in extconf.rb, the following line gets > written out: > > LIBS = -L. -l$(RUBY_INSTALL_NAME) -lc > > This has the effect that my tiny piece of code is linked against > libruby, which has the effect of making it unnecessarily huge. How can > I stop mkmf from adding '-l$(RUBY_INSTALL_NAME)' to LIBS? I've managed to figure this out. libruby.a was getting linked in by accident. Ian -- Ian Macdonald | "If you understand what you're doing, ian@caliban.org | you're not learning anything." -- A. L. | | |