From e8f622ce28eb841bfa718a7c2b92191bf3d84b90 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 27 Aug 2020 00:06:24 +0300 Subject: alsa-lib: build static library --- extra/alsa-lib/build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'extra/alsa-lib') 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" -- cgit v1.2.3