ref: 5c08fd569558d940db6e612dd0df0cc3088f049a
parent: 96c9df6a4c4e64e9e1b7ca040eddb619a386663b
author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
date: Mon Apr 6 19:35:10 EDT 2020
fix alsa static Use pkg-config to determine alsa link flags. This fixes static linking. Signed-off-by: Baruch Siach <baruch@tkos.co.il> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/flite/0002-fix-alsa-static.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
--- a/configure.in
+++ b/configure.in
@@ -383,7 +383,10 @@
AC_CHECK_HEADER(alsa/asoundlib.h,
[AUDIODRIVER="alsa"
AUDIODEFS=-DCST_AUDIO_ALSA
- AUDIOLIBS=-lasound])
+ AUDIOLIBS=`pkg-config --libs alsa`
+ if test "$shared" = false; then
+ AUDIOLIBS=`pkg-config --libs --static alsa`
+ fi])
AC_CHECK_HEADER(mmsystem.h,
[AUDIODRIVER="wince"
AUDIODEFS=-DCST_AUDIO_WINCE