diff --git a/client/build.sh b/client/build.sh index f9f0d3b..9caabfd 100755 --- a/client/build.sh +++ b/client/build.sh @@ -20,7 +20,7 @@ if [ "$1" = "release" ]; then COMPILER_OPTIONS="-Oz -flto $COMPILER_OPTIONS" EMSCRIPTEN_OPTIONS="-sSINGLE_FILE $EMSCRIPTEN_OPTIONS" else - COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling" + COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling -g" fi #ensure deps are compiled diff --git a/client/tools/curl.sh b/client/tools/curl.sh index d0e6dcb..148fae2 100755 --- a/client/tools/curl.sh +++ b/client/tools/curl.sh @@ -18,7 +18,7 @@ cd curl autoreconf -fi emconfigure ./configure --host i686-linux --disable-shared --disable-threaded-resolver --without-libpsl --disable-netrc --disable-ipv6 --disable-tftp --disable-ntlm-wb --enable-websockets --with-wolfssl=$WOLFSSL_PREFIX --with-zlib=$ZLIB_PREFIX --with-brotli=$BROTLI_PREFIX -emmake make -j$CORE_COUNT CFLAGS="-Os -pthread" LIBS="-lbrotlicommon" +emmake make -j$CORE_COUNT CFLAGS="-Oz -pthread" LIBS="-lbrotlicommon" rm -rf $PREFIX mkdir -p $PREFIX/include diff --git a/client/tools/wolfssl.sh b/client/tools/wolfssl.sh index bd08831..74fb50c 100755 --- a/client/tools/wolfssl.sh +++ b/client/tools/wolfssl.sh @@ -16,7 +16,7 @@ git clone -b master --depth=1 https://github.com/wolfSSL/wolfssl wolfssl cd wolfssl autoreconf -fi -CFLAGS="-Os -DSP_WORD_SIZE=32" emconfigure ./configure --prefix=$PREFIX --enable-curl --enable-distro --enable-static --disable-shared --host=i686-linux --disable-examples +CFLAGS="-Oz -DSP_WORD_SIZE=32" emconfigure ./configure --prefix=$PREFIX --enable-curl --enable-static --disable-shared --host=i686-linux --disable-examples # --enable-cryptonly emmake make -j$CORE_COUNT make install