]> git.alsa-project.org Git - alsa-lib.git/commitdiff
gitcompile: Add static build
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 07:37:29 +0000 (09:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 Sep 2023 07:37:29 +0000 (09:37 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
gitcompile

index 0fe092ce2a2d67ee75196d40f7209f5e5f0e2641..c70448f7a1f0f800e761cc3151408f1404a4af3b 100755 (executable)
@@ -32,6 +32,10 @@ if [ $# -ne 0 ]; then
       lto="-flto -flto-partition=none"
       echo "Forced lto build..."
       shift ;;
+    static)
+      static=yes
+      echo "Selected static build..."
+      shift ;;
     *)
       endloop=yes
       ;;
@@ -75,6 +79,12 @@ if [ "$python2" = "yes" ]; then
   args="$args --enable-python2"
 fi
 
+if [ "$static" = "yes" ]; then
+  #args="$args --enable-shared=no --enable-static=yes"
+  args="$args --disable-shared"
+fi
+
+
 touch ltconfig
 libtoolize --force --copy --automake
 aclocal $ACLOCAL_FLAGS