pkg-config --libs sqlite3
and uses them in an ar(1) command line. Fixes build with binutils-2.17. ok giovanni@