diff options
author | 2021-10-15 22:52:24 -0700 | |
---|---|---|
committer | 2021-10-15 22:52:24 -0700 | |
commit | 44108d6a26a1820f2a54716037e33fd5d17b3998 (patch) | |
tree | f2cf074c245ce75b605fe9da9c8b71181c9753be | |
parent | c7fb978b7b06092d8ff5e49508854504cbedc307 (diff) | |
download | bun-44108d6a26a1820f2a54716037e33fd5d17b3998.tar.gz bun-44108d6a26a1820f2a54716037e33fd5d17b3998.tar.zst bun-44108d6a26a1820f2a54716037e33fd5d17b3998.zip |
Fix static libarchive build
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -293,9 +293,12 @@ vendor-without-check: api analytics node-fallbacks runtime_js fallback_decoder b libarchive: cd src/deps/libarchive; \ - cmake . -DLIBICONV_PATH="$(LIBICONV_PATH)"" -DLIBICONV_STATIC=ON -DENABLE_ZLIB=OFF -DENABLE_OPENSSL=OFF; \ + (make clean || echo ""); \ + ./build/clean.sh; \ + ./build/autogen.sh; \ + ./configure --disable-shared --enable-static --with-pic --disable-bsdtar --disable-bsdcat --disable-rpath --enable-posix-regex-lib --without-xml2 --without-expat --without-openssl --without-iconv --without-zlib; \ make -j${CPUS}; \ - cp libarchive/libarchive.a $(DEPS_DIR)/libarchive.a; + cp .libs/libarchive.a/libarchive.a $(DEPS_DIR)/libarchive.a; tgz: zig build-exe -Drelease-fast --main-pkg-path $(shell pwd) ./misctools/tgz.zig $(DEPS_DIR)/zlib/libz.a $(DEPS_DIR)/libarchive.a $(LIBICONV_PATH) -lc |