* src/cacao/cacao.c (main): Use RTLD_NOW instead of RTLD_LAZY to find
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 8 Jul 2008 13:39:02 +0000 (15:39 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 8 Jul 2008 13:39:02 +0000 (15:39 +0200)
all undefined symbols.

src/cacao/cacao.c

index 83b98d9ea1f3da0d93577379fcb177f07daf4f71..436b05d6fd8fe43b351f804818229900ea74c949 100644 (file)
@@ -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 */