Small fix.
This commit is contained in:
parent
af0a957299
commit
c02f110b64
18
build.sh
18
build.sh
@ -39,7 +39,7 @@ printf "\n==================== zlib ====================\n\n"
|
||||
readonly ZLIB_DIR="${BASE_DIR}/zlib-src"
|
||||
pkg_zlib="$(find "${LIBS_DIR}" -maxdepth 1 -name 'zlib-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${ZLIB_DIR}" && mkdir "${ZLIB_DIR}"
|
||||
tar -xvf ${pkg_zlib} --strip-components=1 -C "${ZLIB_DIR}"
|
||||
tar -xvf "${pkg_zlib}" --strip-components=1 -C "${ZLIB_DIR}"
|
||||
pushd "${ZLIB_DIR}"
|
||||
make -f win32/Makefile.gcc libz.a LOC="-march=${MY_MARCH} -mtune=${MY_MTUNE}"
|
||||
cp -vf libz.a "${LIBS_DIR}/lib"
|
||||
@ -53,7 +53,7 @@ printf "\n==================== Zstandard ====================\n\n"
|
||||
readonly ZSTD_DIR="${BASE_DIR}/zstd-src"
|
||||
pkg_zstd="$(find "${LIBS_DIR}" -maxdepth 1 -name 'zstd-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${ZSTD_DIR}" && mkdir "${ZSTD_DIR}"
|
||||
tar -xvf ${pkg_zstd} --strip-components=1 -C "${ZSTD_DIR}"
|
||||
tar -xvf "${pkg_zstd}" --strip-components=1 -C "${ZSTD_DIR}"
|
||||
pushd "${ZSTD_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" make lib
|
||||
cp -vf lib/libzstd.a "${LIBS_DIR}/lib"
|
||||
@ -67,7 +67,7 @@ printf "\n==================== Brotli ====================\n\n"
|
||||
readonly BROT_DIR="${BASE_DIR}/brotli-src"
|
||||
pkg_brot="$(find "${LIBS_DIR}" -maxdepth 1 -name 'brotli-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${BROT_DIR}" && mkdir "${BROT_DIR}"
|
||||
tar -xvf ${pkg_brot} --strip-components=1 -C "${BROT_DIR}"
|
||||
tar -xvf "${pkg_brot}" --strip-components=1 -C "${BROT_DIR}"
|
||||
pushd "${BROT_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" make lib
|
||||
mkdir -p "${LIBS_DIR}/include/brotli"
|
||||
@ -83,7 +83,7 @@ printf "\n==================== OpenSSL ====================\n\n"
|
||||
readonly OSSL_DIR="${BASE_DIR}/openssl-src"
|
||||
pkg_ossl="$(find "${LIBS_DIR}" -maxdepth 1 -name 'openssl-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${OSSL_DIR}" && mkdir "${OSSL_DIR}"
|
||||
tar -xvf ${pkg_ossl} --strip-components=1 -C "${OSSL_DIR}"
|
||||
tar -xvf "${pkg_ossl}" --strip-components=1 -C "${OSSL_DIR}"
|
||||
pushd "${OSSL_DIR}"
|
||||
./Configure no-hw no-shared no-engine no-capieng no-dso 386 zlib -static -march=${MY_MARCH} -mtune=${MY_MTUNE} -I"${LIBS_DIR}/include" -L"${LIBS_DIR}/lib" -latomic mingw
|
||||
make build_libs
|
||||
@ -100,7 +100,7 @@ printf "\n==================== libssh2 ====================\n\n"
|
||||
readonly SSH2_DIR="${BASE_DIR}/libssh2-src"
|
||||
pkg_ssh2="$(find "${LIBS_DIR}" -maxdepth 1 -name 'libssh2-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${SSH2_DIR}" && mkdir "${SSH2_DIR}"
|
||||
tar -xvf ${pkg_ssh2} --strip-components=1 -C "${SSH2_DIR}"
|
||||
tar -xvf "${pkg_ssh2}" --strip-components=1 -C "${SSH2_DIR}"
|
||||
pushd "${SSH2_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" LIBS="-latomic" ./configure --disable-examples-build --disable-shared --with-libz
|
||||
make
|
||||
@ -115,7 +115,7 @@ printf "\n==================== nghttp2 ====================\n\n"
|
||||
readonly NGH2_DIR="${BASE_DIR}/nghttp2-src"
|
||||
pkg_ngh2="$(find "${LIBS_DIR}" -maxdepth 1 -name 'nghttp2-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${NGH2_DIR}" && mkdir "${NGH2_DIR}"
|
||||
tar -xvf ${pkg_ngh2} --strip-components=1 -C "${NGH2_DIR}"
|
||||
tar -xvf "${pkg_ngh2}" --strip-components=1 -C "${NGH2_DIR}"
|
||||
pushd "${NGH2_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" OPENSSL_CFLAGS="-I${LIBS_DIR}/include" OPENSSL_LIBS="-L${LIBS_DIR}/lib -lssl -lcrypto" ZLIB_CFLAGS="-I${LIBS_DIR}/include" ZLIB_LIBS="-L${LIBS_DIR}/lib -lz" ./configure --enable-lib-only --disable-threads --disable-shared
|
||||
make
|
||||
@ -132,7 +132,7 @@ printf "\n==================== libiconv ====================\n\n"
|
||||
readonly ICNV_DIR="${BASE_DIR}/libiconv-src"
|
||||
pkg_icnv="$(find "${LIBS_DIR}" -maxdepth 1 -name 'libiconv-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${ICNV_DIR}" && mkdir "${ICNV_DIR}"
|
||||
tar -xvf ${pkg_icnv} --strip-components=1 -C "${ICNV_DIR}"
|
||||
tar -xvf "${pkg_icnv}" --strip-components=1 -C "${ICNV_DIR}"
|
||||
pushd "${ICNV_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" ./configure --disable-rpath --disable-shared
|
||||
make
|
||||
@ -147,7 +147,7 @@ printf "\n==================== libidn2 ====================\n\n"
|
||||
readonly IDN2_DIR="${BASE_DIR}/libidn2-src"
|
||||
pkg_idn2="$(find "${LIBS_DIR}" -maxdepth 1 -name 'libidn2-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${IDN2_DIR}" && mkdir "${IDN2_DIR}"
|
||||
tar -xvf ${pkg_idn2} --strip-components=1 -C "${IDN2_DIR}"
|
||||
tar -xvf "${pkg_idn2}" --strip-components=1 -C "${IDN2_DIR}"
|
||||
pushd "${IDN2_DIR}"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" ./configure --disable-shared --disable-doc --without-libiconv-prefix --without-libunistring-prefix --disable-valgrind-tests
|
||||
make
|
||||
@ -162,7 +162,7 @@ printf "\n==================== libgsasl ====================\n\n"
|
||||
readonly SASL_DIR="${BASE_DIR}/libgsasl-src"
|
||||
pkg_sasl="$(find "${LIBS_DIR}" -maxdepth 1 -name 'libgsasl-*.tar.gz' | sort -rn | head -n1)"
|
||||
rm -rf "${SASL_DIR}" && mkdir "${SASL_DIR}"
|
||||
tar -xvf ${pkg_sasl} --strip-components=1 -C "${SASL_DIR}"
|
||||
tar -xvf "${pkg_sasl}" --strip-components=1 -C "${SASL_DIR}"
|
||||
pushd "${SASL_DIR}"
|
||||
patch -p1 -b < "${BASE_DIR}/patch/gsasl_error.diff"
|
||||
CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" ./configure --disable-shared --disable-valgrind-tests --disable-obsolete -without-libintl-prefix
|
||||
|
Loading…
Reference in New Issue
Block a user