summaryrefslogtreecommitdiff
path: root/pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-06-27 01:37:07 -0700
committerMichael Forney <mforney@mforney.org>2021-06-27 01:51:57 -0700
commitcc1f4c24778bfbd2a7d28f32661009deaeecfbf5 (patch)
tree95af61a17fd56261f782f7db767dc9aabc25c617 /pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch
parentfccac025c366b0983c1ecc9eba12547c04331d50 (diff)
alsa-lib: Update to 1.2.5.1
Diffstat (limited to 'pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch')
-rw-r--r--pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch b/pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch
new file mode 100644
index 00000000..ddf48a20
--- /dev/null
+++ b/pkg/alsa-lib/patch/0006-Fix-build-with-enable-static.patch
@@ -0,0 +1,30 @@
+From b8d490ad478f1ed862244a5a86d157263de94a23 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 27 Jun 2021 01:24:41 -0700
+Subject: [PATCH] Fix build with --enable-static
+
+A typo in the variable name was causing a linking error:
+
+ libasound.a(control_symbols.o):(.data.rel+0x8): undefined reference to `_snd_module_control_empty'
+
+Signed-off-by: Michael Forney <mforney@mforney.org>
+---
+ src/control/control_empty.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/control/control_empty.c b/src/control/control_empty.c
+index 49d1026c..c9b048c1 100644
+--- a/src/control/control_empty.c
++++ b/src/control/control_empty.c
+@@ -30,7 +30,7 @@
+
+ #ifndef PIC
+ /* entry for static linking */
+-const char *_snd_module_ctl_empty = "";
++const char *_snd_module_control_empty = "";
+ #endif
+
+ /*! \page control_plugins
+--
+2.31.1
+