aboutsummaryrefslogtreecommitdiff
path: root/extra/alsa-lib
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-08-27 00:06:24 +0300
committerCem Keylan <cem@ckyln.com>2020-08-27 00:06:24 +0300
commite8f622ce28eb841bfa718a7c2b92191bf3d84b90 (patch)
treef2b22fb84971a2d76557922ff47f86ef8941c1e6 /extra/alsa-lib
parent4536584b4c9675d5c8e1985a72575c54c7e337aa (diff)
downloadrepository-e8f622ce28eb841bfa718a7c2b92191bf3d84b90.tar.gz
alsa-lib: build static library
Diffstat (limited to 'extra/alsa-lib')
-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"