[LCP]statically linking argtable and other libraries

Christopher Baus christopher at baus.net
Fri Jul 9 00:53:02 UTC 2004


>
>   Does the -static come before or after the -largtable2?  ld args are
> context
> sensitive.  You may want to check the output of gcc -v to make sure the
> linker
> (collect2) is getting -static before any -l's.
>
> 								- Steve
The problem is with libtool.  It seems to be removing the -static switch
from the link command.



More information about the linuxCprogramming mailing list