aboutsummaryrefslogtreecommitdiff
path: root/extra/alsa-lib/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/alsa-lib/build')
-rwxr-xr-xextra/alsa-lib/build16
1 files changed, 14 insertions, 2 deletions
diff --git a/extra/alsa-lib/build b/extra/alsa-lib/build
index d6f70b3d..edc209ad 100755
--- a/extra/alsa-lib/build
+++ b/extra/alsa-lib/build
@@ -1,8 +1,20 @@
#!/bin/sh -e
./configure \
- --without-debug \
- --prefix=/usr
+ --prefix=/usr \
+ --without-debug
make
make DESTDIR="$1" install
+
+# Compile the static library. Due to a bug in libtool/alsa-lib you cannot
+# compile static and shared libraries together.
+
+make clean
+
+./configure \
+ --enable-static=yes \
+ --enable-shared=no
+
+make
+install -Dm644 src/.libs/libasound.a "$1/usr/lib/libasound.a"