From c519a3bf43c3bde498f3f970ddc3f1ef5d76b384 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 8 Sep 2021 16:03:36 -0700 Subject: feat: added zlib dependency --- vendor/sync | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'vendor') diff --git a/vendor/sync b/vendor/sync index fa019cd..0ac5ecd 100755 --- a/vendor/sync +++ b/vendor/sync @@ -14,7 +14,7 @@ BLAS_TAG="v0.3.17" build_blas() { git clone $BLAS_URL blas - cd OpenBLAS && git checkout $BLAS_TAG + cd blas && git checkout $BLAS_TAG NO_SHARED=1 TARGET=GENERIC PREFIX=$ROOT make -j2 NO_SHARED=1 make install PREFIX=$ROOT @@ -29,10 +29,10 @@ build_blas() $ROOT/include/openblas_config.h \ $ROOT/include/lapacke_config.h \ $ROOT/include/lapacke_mangling.h \ - $ROOT/include/vendor/OpenBLAS + $ROOT/include/vendor/blas cd $VENDOR - echo $BLAS_TAG > OpenBLAS/build.tag + echo $BLAS_TAG > blas/build.tag } # ------------------------------------------------------------------------ @@ -67,7 +67,7 @@ build_nlopt() rm -rf $ROOT/lib/cmake # rm -rf $ROOT/man - mv $ROOT/include/nlopt.h $ROOT/include/vendor/nlopt + mv $ROOT/include/nlopt.h $ROOT/include/vendor/nlopt.h cd $VENDOR echo $NLOPT_TAG > nlopt/build.tag @@ -103,6 +103,25 @@ build_musl() echo $MUSL_TAG > musl/build.tag } +# ------------------------------------------------------------------------ +# musl libc + +ZLIB_URL="https://github.com/madler/zlib.git" +ZLIB_TAG="v1.2.11" + +build_zlib() +{ + git clone $ZLIB_URL zlib + cd zlib && git checkout $ZLIB_TAG + prefix=$ROOT ./configure --static + + make -j2 + make install + + cd $VENDOR + echo $ZLIB_TAG > zlib/build.tag +} + # ------------------------------------------------------------------------ # utility functions @@ -124,3 +143,4 @@ update() update nlopt $NLOPT_TAG update musl $MUSL_TAG update blas $BLAS_TAG +update zlib $ZLIB_TAG -- cgit v1.2.1