2022-03-30 03:04:49 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
|
|
|
source common.sh
|
|
|
|
|
2022-04-10 04:23:22 +00:00
|
|
|
pushd "$BUILD_DIR"
|
2022-08-04 02:23:25 +00:00
|
|
|
rm -rf zstd-build
|
|
|
|
mkdir zstd-build
|
2022-03-30 03:04:49 +00:00
|
|
|
|
2022-08-04 02:23:25 +00:00
|
|
|
pushd zstd-build
|
2022-08-07 03:29:20 +00:00
|
|
|
|
|
|
|
# makefile can't handle parallelism
|
|
|
|
export MAKEFLAGS=""
|
|
|
|
|
2022-03-30 03:04:49 +00:00
|
|
|
export CFLAGS="-D_POSIX_SOURCE=1"
|
|
|
|
export CXXFLAGS="-D_POSIX_SOURCE=1"
|
|
|
|
emcmake cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
|
2022-08-04 02:23:25 +00:00
|
|
|
"$SOURCES_DIR/zstd/build/cmake"
|
2022-03-30 03:04:49 +00:00
|
|
|
|
|
|
|
emmake make
|
|
|
|
emmake make install
|
|
|
|
|
|
|
|
echo "zstd OK"
|