I have a C++ project that is required to be built with a static version of Qt. However, QtWebKit will not successfully build statically, though it does build into a dll just fine.
My question is this: how do I tell a Makefile to use dlls instead of static libraries? This seems like it should be a trivial task, though I don't have enough experience with Makefiles to know how to do this. Thanks in advance for any assistance on this.
In linux
using GNU Make
environment, the process of linking with static library is
gcc obj1.o obj2.o staticlib.a -o outfile
//not considering include path for static library
and, linking with a dynamic library is
gcc obj1.c obj2.c -o outfile -labc
//dynamic library is libabc.so, not considering the path
From the man
page of gcc
we can see that,
Please update your makefile accordingly.
Cheers!!