diff options
Diffstat (limited to 'vendor')
-rwxr-xr-x | vendor/sync | 28 |
1 files changed, 24 insertions, 4 deletions
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 @@ -104,6 +104,25 @@ build_musl() } # ------------------------------------------------------------------------ +# 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 update() @@ -124,3 +143,4 @@ update() update nlopt $NLOPT_TAG update musl $MUSL_TAG update blas $BLAS_TAG +update zlib $ZLIB_TAG |