mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
emscript-wasm: don't use --enable-minimal on sumo builds
This commit is contained in:
@@ -21,6 +21,7 @@ if [ "x$1" = "x--standard" ]; then
|
|||||||
export LDFLAGS="${LDFLAGS} ${LDFLAGS_DIST} -s TOTAL_MEMORY=${TOTAL_MEMORY}"
|
export LDFLAGS="${LDFLAGS} ${LDFLAGS_DIST} -s TOTAL_MEMORY=${TOTAL_MEMORY}"
|
||||||
export PREFIX="$(pwd)/libsodium-js"
|
export PREFIX="$(pwd)/libsodium-js"
|
||||||
export DONE_FILE="$(pwd)/js.done"
|
export DONE_FILE="$(pwd)/js.done"
|
||||||
|
export CONFIG_EXTRA="--enable-minimal"
|
||||||
export DIST='yes'
|
export DIST='yes'
|
||||||
elif [ "x$1" = "x--sumo" ]; then
|
elif [ "x$1" = "x--sumo" ]; then
|
||||||
echo "Building a sumo distribution in ${PREFIX}"
|
echo "Building a sumo distribution in ${PREFIX}"
|
||||||
@@ -55,7 +56,7 @@ export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
|
|||||||
rm -f "$DONE_FILE"
|
rm -f "$DONE_FILE"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
|
emconfigure ./configure $CONFIG_EXTRA --disable-shared --prefix="$PREFIX" \
|
||||||
--without-pthreads CFLAGS="$CFLAGS" && \
|
--without-pthreads CFLAGS="$CFLAGS" && \
|
||||||
emmake make clean
|
emmake make clean
|
||||||
[ $? = 0 ] || exit 1
|
[ $? = 0 ] || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user