Wangling I'm Wang Ling. I'm wangling you.

Archive for February 2008

How To Selectively Static Link Some of The Libraries Using GCC

Usually, we just use “gcc -o output obj1.o obj2.o … -Llibdir -llib1 -llib2 …” when linking via GCC, and let ld’s default library searching mechanism that prefers shared libraries to static libraries to help us make the selections. Under such a shelter, many of us don’t care the static-V.S.-dynamic competition or even have no sense [...]