Mixed Static and Shared Library Linking with GCC

Diposkan oleh Unknown on Thursday, October 16, 2008

If you want to link some libraries statically and other dynamically you can use these switches:

-Wl,-Bstatic -lsomelibstatically -Wl,-Bdynamic -lotherlibshared

If you just want to compile it all statically, use LDFLAGS="-static".

{ 0 komentar... read them below or add one }

Post a Comment

Come on share your comment, but please do not spam