<[EMAIL PROTECTED]> writes:
>On Wed, Mar 12, 2003 at 08:08:49AM +0100, Jochen Wiedmann wrote:
>> > >     LIBS="-L/usr(local/mysql/lib -Bstatic -lmysqlclient"
>> > > 
>> > > gives
>> > > 
>> > >     Unrecognized argument in LIBS ignored: '-Bstatic'
>> > > 
>> > > Is this actually not handled in MakeMaker?
>> > 
>> >     That's right.  LIBS is specifically for -l and -L options (that is,
>> > libraries and library paths).  See ExtUtils::Liblist for the gory
>> > details.  You may want to set OTHERLDFLAGS to accomplish what you
>> > are looking for.
>> 
>> But loose the ability to specify my flags in a compiler independent
>> way? :-(
>
>I *think* LINKTYPE=static is what you want.  Its mentioned in the man page.

No. LINKTYPE=static builds a perl executable with extension built-in, on 
a machine with a libmysqlclient.so that will still link to that library 
as a dynamic library and you will not be able to use it on a machine without
libmysqlclient.so - however if you force use of libmysqlclient.a you 
can so move it. This is orthogonal to the build loadable extension vs link into 
new perl executable.

I have remembered another tick I have used in the past:

  -L/dir/with/links_to_archive_libs -lmysqlclient


-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/

Reply via email to