Skip to contentSkip to conversation

Correction for fixing alsa-lib static build (patch attached)

PATCH Hans-Christian Egtvedt 1 participant 1 message May 12, 2006

lore
Share & tools
lore
#0 lore raw

Hi!

While trying to compile the alsa library static, without dynamic lib at all, I encountered an error with two symbols being unresolved.

The attached patch corrects the compile errors when doing a standard configure and build. I haven't disabled or enabled anything else than what is compiled in by default.

Please comment if my patch breaks the library or similar.

Signature · 6 lines
With kind regards,
Med vennlig hilsen,

Hans-Christian Egtvedt
Applications Engineer - AVR Applications Lab
Atmel Norway
src/pcm/pcm_ioplug.c +3 -0
@@ -30,6 +30,9 @@
 #include "pcm_ioplug.h"
 #include "pcm_ext_parm.h"
 
+/* entry for static linking */
+const char *_snd_module_pcm_ioplug = "";
+
 #ifndef DOC_HIDDEN
 
 /* hw_params */
src/pcm/pcm_extplug.c +3 -0
@@ -31,6 +31,9 @@
 #include "pcm_extplug.h"
 #include "pcm_ext_parm.h"
 
+/* entry for static linking */
+const char *_snd_module_pcm_extplug = "";
+
 #ifndef DOC_HIDDEN
 
 typedef struct snd_pcm_extplug_priv {