python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / flite / 0002-fix-alsa-static.patch
blob12adb9e018818f875ff66bce123ca9e2986fba21
1 Use pkg-config to determine alsa link flags. This fixes static linking.
3 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
5 diff -Nuar flite-1.4-release.orig/configure.in flite-1.4-release/configure.in
6 --- flite-1.4-release.orig/flite-1.4-release/configure.in 2009-08-14 23:46:38.000000000 +0300
7 +++ flite-1.4-release/flite-1.4-release/configure.in 2014-04-30 18:52:33.253297236 +0300
8 @@ -275,7 +275,10 @@
9 #endif],
10 [AUDIODRIVER="alsa"
11 AUDIODEFS=-DCST_AUDIO_ALSA
12 - AUDIOLIBS=-lasound])
13 + AUDIOLIBS=`pkg-config --libs alsa`
14 + if test "$shared" = false; then
15 + AUDIOLIBS=`pkg-config --libs --static alsa`
16 + fi])
17 AC_CHECK_HEADER(mmsystem.h,
18 [AUDIODRIVER="wince"
19 AUDIODEFS=-DCST_AUDIO_WINCE