From c6db307a8b3ebcc71013cab41a342b44db0b7db2 Mon Sep 17 00:00:00 2001 From: Christian Thalinger Date: Tue, 8 Jul 2008 15:39:02 +0200 Subject: [PATCH] * src/cacao/cacao.c (main): Use RTLD_NOW instead of RTLD_LAZY to find all undefined symbols. --- src/cacao/cacao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cacao/cacao.c b/src/cacao/cacao.c index 83b98d9ea..436b05d6f 100644 --- a/src/cacao/cacao.c +++ b/src/cacao/cacao.c @@ -129,14 +129,14 @@ int main(int argc, char **argv) /* First try to open where dlopen searches, e.g. LD_LIBRARY_PATH. If not found, try the absolute path. */ - libjvm_handle = system_dlopen(LIBJVM_NAME, RTLD_LAZY); + libjvm_handle = system_dlopen(LIBJVM_NAME, RTLD_NOW); if (libjvm_handle == NULL) { /* save the error message */ lterror = strdup(system_dlerror()); - libjvm_handle = system_dlopen(path, RTLD_LAZY); + libjvm_handle = system_dlopen(path, RTLD_NOW); if (libjvm_handle == NULL) { /* print the first error message too */ -- 2.25.1