]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (load_deplibs): Don't append shlib_ext; use
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 06:09:25 +0000 (06:09 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 06:09:25 +0000 (06:09 +0000)
lt_dlopenext() instead.

ChangeLog
libltdl/ltdl.c

index ae49da2c40894343b93689b096e5ca95e9cae77f..473a4017ebd8bbdc5be607bf1b9e508185d104ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-04  Alexandre Oliva  <aoliva@redhat.com>
 
+       * libltdl/ltdl.c (load_deplibs): Don't append shlib_ext; use
+       lt_dlopenext() instead.
+
        * ltmain.in (link -static): Don't add $link_static_flag; only
        -all-static should do that.
        * mdemo/configure.in: Revert part of the previous delta.
index ac2540d6a4e26da9dcbe84bc4acaf4f154f16656..4bcf3ed446bad68fecc160b08a1a0ef64c669a13 100644 (file)
@@ -1165,10 +1165,10 @@ load_deplibs(handle, deplibs)
                ret = 0;
                goto cleanup;
        }
-       names = lt_dlmalloc(depcount * sizeof(char*));
+       names = (char**)lt_dlmalloc(depcount * sizeof(char*));
        if (!names)
                goto cleanup;
-       handles = lt_dlmalloc(depcount * sizeof(lt_dlhandle*));
+       handles = (lt_dlhandle*)lt_dlmalloc(depcount * sizeof(lt_dlhandle*));
        if (!handles)
                goto cleanup;
        depcount = 0;
@@ -1185,9 +1185,9 @@ load_deplibs(handle, deplibs)
                                *end = 0; /* set a temporary string terminator */
                                if (strncmp(p, "-l", 2) == 0) {
                                        name = lt_dlmalloc(3+ /* "lib" */
-                                        strlen(p+2)+strlen(shlib_ext)+1);
+                                                          strlen(p+2)+1);
                                        if (name)
-                                               sprintf(name, "lib%s%s", p+2, shlib_ext);
+                                               sprintf (name, "lib%s", p+2);
                                } else
                                        name = strdup(p);
                                if (name)
@@ -1202,7 +1202,7 @@ load_deplibs(handle, deplibs)
        }
        /* load the deplibs (in reverse order) */
        for (i = 0; i < depcount; i++) {
-               lt_dlhandle handle = lt_dlopen(names[depcount-1-i]);
+               lt_dlhandle handle = lt_dlopenext(names[depcount-1-i]);
                if (!handle) {
                        int j;
                        for (j = 0; j < i; j++)