For example screenshot recipe in poky. It needs these libraries specified to the linker: -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lX11 The right thing would be libtool adding these dependencies in the libshot.la file.
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=4b912a58564f69accac047667f4fb91c01a6c17a