convince the thrice-damned ltldl code to actually open "foo.a",
authoraland <aland>
Tue, 21 Nov 2000 18:30:07 +0000 (18:30 +0000)
committeraland <aland>
Tue, 21 Nov 2000 18:30:07 +0000 (18:30 +0000)
like it's supposed to, like it claims to, but which it doesn't
do, until I've drop-kicked the fix through it's thick head.

libltdl/ltdl.c

index 4d75e02..b6675c4 100644 (file)
@@ -1457,6 +1457,18 @@ lt_dlopenext (filename)
                return handle;
        }
 #endif 
+       /*
+        *      WTF?  It's SUPPOSED to look for statically linked libraries,
+        *      but the bugger doesn't!
+        */
+       strcpy(tmp, filename);
+       strcat(tmp, ".a");
+       handle = lt_dlopen(tmp);
+       if (handle) {
+               last_error = saved_error;
+               lt_dlfree(tmp);
+               return handle;
+       }
        last_error = file_not_found_error;
        lt_dlfree(tmp);
        return 0;