we need to explicitly link the test program with -ldl for the dlopen function to be available. llvm-svn: 335956