Jochen Wiedmann <[EMAIL PROTECTED]> writes: >Hi, Nick, > >Zitiere Nick Ing-Simmons <[EMAIL PROTECTED]>: > >> As far as I know MakeMaker is right to reject -llibbar.a as most >> linkers >> would as well. e.g. GNU ld you specify this by adding -Bstatic before >> -lbar. (And you normally get the -Bstatic in the list with -Wl,-Bstatic >> >> to gcc.) But sadly MakeMaker also throws out those arguments as well. >> >> I have resorted to override in Makefile.PL that puts the -Wl,-Bstatic >> back in. > >assuming I have two libraries, say libz and libmysqlclient. I want >the former to be dynamic (if possible) and the latter to be static. >Does that mean I have to specify > > -lz -Bstatic -lmysqlclient
Yes or -Bstatic -lmysqlclient -Bdynamic -lz My case is Motif library -lXm which SuSE (my build machine) has in both forms, but RedHat (where I want binaries to run too) does not. So I do s/-lXm/-Wl,-Bstatic -lXm -Wl,-Bdynamic/ > > >Regards, > >Jochen -- Nick Ing-Simmons http://www.ni-s.u-net.com/
