mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Allow build without libdl and libpthread
Allow building alsa-lib without libdl and libpthread. Added new options to configure, --with-libdl and --with-pthread.
This commit is contained in:
parent
9a75eec664
commit
70e4ec9d08
21 changed files with 118 additions and 25 deletions
|
|
@ -82,14 +82,14 @@ static int try_open(snd_mixer_class_t *class, const char *lib)
|
|||
free(xlib);
|
||||
return -ENXIO;
|
||||
}
|
||||
event_func = dlsym(h, "alsa_mixer_simple_event");
|
||||
event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
|
||||
if (event_func == NULL) {
|
||||
SNDERR("Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);
|
||||
snd_dlclose(h);
|
||||
free(xlib);
|
||||
return -ENXIO;
|
||||
}
|
||||
init_func = dlsym(h, "alsa_mixer_simple_init");
|
||||
init_func = snd_dlsym(h, "alsa_mixer_simple_init", NULL);
|
||||
if (init_func == NULL) {
|
||||
SNDERR("Symbol 'alsa_mixer_simple_init' was not found in '%s'", xlib);
|
||||
snd_dlclose(h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue