Solved :( The linker doesn't have access to gcc's built-in library search paths. It reads paths directly from /etc/ld.so.conf, which was not present in this case, hence the failure. Andrew Walrond