How to selectively pick static/dynamic link library

Hi! All: Could someone please tell me how could I selectively link libary as static/dynamic.
e.g. if I have:
libxx.a
xx.so
libyy.a
yy.so

How do I instruct gcc to link in libxx.a and yy.so(without deleting files of course)?

Thanks in advance!
man gcc
Topic archived. No new replies allowed.