ref: 8061b6e9a0021f9cbc7733b7d704edeebff0f749
parent: de6e99e8fd5210ec77df16b53da7618b61aa7f9d
parent: 5c08fd569558d940db6e612dd0df0cc3088f049a
author: Kevin Lenzo <66268906+lenzo-duo@users.noreply.github.com>
date: Fri Aug 14 14:54:25 EDT 2020
Merge pull request #40 from ffontaine/master fix alsa static
--- a/configure.in
+++ b/configure.in
@@ -392,7 +392,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