Re: mixed compilation



alex.gman@xxxxxxxxx wrote:
Can you compile an application statically with respect to some
libraries and dynamically with respect to others? It seems like this
should be doable in theory, but I can't find the required GCC options
for that.
e.g. gcc -o myprog myprog.o -Wl,-static -lpcap -ldb -Wl,-Bdynamic -lfoo
links statically to libpcap and libdb, dynamically to libfoo
.