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:
Takashi Iwai 2006-10-27 16:08:21 +02:00
parent 03389a444b
commit c9610c024d
6 changed files with 7 additions and 6 deletions

View file

@ -30,7 +30,7 @@ static const char **snd_control_open_objects[] = {
void *snd_control_open_symbols(void)
{
return (void *)snd_control_open_objects[0];
return snd_control_open_objects;
}
#endif /* !PIC */

View file

@ -28,7 +28,7 @@ static const char **snd_hwdep_open_objects[] = {
void *snd_hwdep_open_symbols(void)
{
return (void *)snd_hwdep_open_objects[0];
return snd_hwdep_open_objects;
}
#endif

View file

@ -33,6 +33,7 @@ extern const char *_snd_module_pcm_meter;
extern const char *_snd_module_pcm_mulaw;
extern const char *_snd_module_pcm_multi;
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_rate;
extern const char *_snd_module_pcm_route;
@ -56,7 +57,7 @@ static const char **snd_pcm_open_objects[] = {
void *snd_pcm_open_symbols(void)
{
return (void *)snd_pcm_open_objects[0];
return snd_pcm_open_objects;
}
#endif /* !PIC */

View file

@ -30,7 +30,7 @@ static const char **snd_rawmidi_open_objects[] = {
void *snd_rawmidi_open_symbols(void)
{
return (void *)snd_rawmidi_open_objects[0];
return snd_rawmidi_open_objects;
}
#endif /* !PIC */

View file

@ -28,7 +28,7 @@ static const char **snd_seq_open_objects[] = {
void *snd_seq_open_symbols(void)
{
return (void *)snd_seq_open_objects[0];
return snd_seq_open_objects;
}
#endif /* !PIC */

View file

@ -40,7 +40,7 @@ static const char **snd_timer_query_open_objects[] = {
void *snd_timer_query_open_symbols(void)
{
return (void *)snd_timer_query_open_objects[0];
return snd_timer_query_open_objects;
}
#endif /* !PIC */