inline  

Still having trouble linking to a static library

Sean McMahon
Mon, 18 Jun 2007 17:14:32 -0700

After some review of MakeMaker, Xs, and Inline, I figured out something that I thought would be able to link to a static library we have. Yet even after specifying -static as a flag to gcc, -Bstatic as a flag to my linker, and using linktype=static as an argument to the initial make command, I.E. perl linktype=static Makefile.PL, my program still has trouble because it is trying to refference the .so file and not the .a file. I want my program to refer to mylib.a and not mylib.so. There happens to be both a static version and dynamic version of this library, but due to some horrible dependency issues, it's easier to use the static libraries, in theory. Your help is appreciated.
Sean