libltdl: Fix libltdl early failures for multi-arch

Since there could be multiple files for libltdl to try dlopening,
libltdl should not fail after the first attempted file.

Reported: https://savannah.gnu.org/support/?111214

* libltdl/ltdl.c: Change return if dlopen() fails.
* libltdl/ltdl.mk: Update serial.
This commit is contained in:
Pierre Ossman 2025-04-01 16:47:44 +03:00 committed by Ileana Dumitrescu
parent c69efe983d
commit 661d5573ea
No known key found for this signature in database
GPG Key ID: 6570EA01146F7354
2 changed files with 3 additions and 4 deletions

View File

@ -785,10 +785,9 @@ find_handle_callback (char *filename, void *data, void *data2)
if (notfound)
return 0;
/* Try to dlopen the file, but do not continue searching in any
case. */
/* Try to dlopen the file. */
if (tryall_dlopen (phandle, filename, advise, 0) != 0)
*phandle = 0;
return 0;
return 1;
}

View File

@ -35,7 +35,7 @@ AM_CPPFLAGS += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \
-I$(srcdir)/libltdl -Ilibltdl/libltdl \
-I$(srcdir)/libltdl/libltdl
AM_LDFLAGS += -no-undefined
LTDL_VERSION_INFO = -version-info 10:4:3
LTDL_VERSION_INFO = -version-info 10:5:3
noinst_LTLIBRARIES += $(LT_DLLOADERS)