mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Fix build of static library
- Add missing pcm_empty entry - Return the array pointer instead of the first array member. Otherwise only the first entry is linked to the binary.
This commit is contained in:
parent
03389a444b
commit
c9610c024d
6 changed files with 7 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ static const char **snd_control_open_objects[] = {
|
||||||
|
|
||||||
void *snd_control_open_symbols(void)
|
void *snd_control_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_control_open_objects[0];
|
return snd_control_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !PIC */
|
#endif /* !PIC */
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ static const char **snd_hwdep_open_objects[] = {
|
||||||
|
|
||||||
void *snd_hwdep_open_symbols(void)
|
void *snd_hwdep_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_hwdep_open_objects[0];
|
return snd_hwdep_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ extern const char *_snd_module_pcm_meter;
|
||||||
extern const char *_snd_module_pcm_mulaw;
|
extern const char *_snd_module_pcm_mulaw;
|
||||||
extern const char *_snd_module_pcm_multi;
|
extern const char *_snd_module_pcm_multi;
|
||||||
extern const char *_snd_module_pcm_null;
|
extern const char *_snd_module_pcm_null;
|
||||||
|
extern const char *_snd_module_pcm_empty;
|
||||||
extern const char *_snd_module_pcm_plug;
|
extern const char *_snd_module_pcm_plug;
|
||||||
extern const char *_snd_module_pcm_rate;
|
extern const char *_snd_module_pcm_rate;
|
||||||
extern const char *_snd_module_pcm_route;
|
extern const char *_snd_module_pcm_route;
|
||||||
|
|
@ -56,7 +57,7 @@ static const char **snd_pcm_open_objects[] = {
|
||||||
|
|
||||||
void *snd_pcm_open_symbols(void)
|
void *snd_pcm_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_pcm_open_objects[0];
|
return snd_pcm_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !PIC */
|
#endif /* !PIC */
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ static const char **snd_rawmidi_open_objects[] = {
|
||||||
|
|
||||||
void *snd_rawmidi_open_symbols(void)
|
void *snd_rawmidi_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_rawmidi_open_objects[0];
|
return snd_rawmidi_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !PIC */
|
#endif /* !PIC */
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ static const char **snd_seq_open_objects[] = {
|
||||||
|
|
||||||
void *snd_seq_open_symbols(void)
|
void *snd_seq_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_seq_open_objects[0];
|
return snd_seq_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !PIC */
|
#endif /* !PIC */
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ static const char **snd_timer_query_open_objects[] = {
|
||||||
|
|
||||||
void *snd_timer_query_open_symbols(void)
|
void *snd_timer_query_open_symbols(void)
|
||||||
{
|
{
|
||||||
return (void *)snd_timer_query_open_objects[0];
|
return snd_timer_query_open_objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !PIC */
|
#endif /* !PIC */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue