mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
get curl and wolfssl to both compile
This commit is contained in:
parent
01622283f5
commit
33a095e514
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ if [ "$1" = "release" ]; then
|
||||||
COMPILER_OPTIONS="-Oz -flto $COMPILER_OPTIONS"
|
COMPILER_OPTIONS="-Oz -flto $COMPILER_OPTIONS"
|
||||||
EMSCRIPTEN_OPTIONS="-sSINGLE_FILE $EMSCRIPTEN_OPTIONS"
|
EMSCRIPTEN_OPTIONS="-sSINGLE_FILE $EMSCRIPTEN_OPTIONS"
|
||||||
else
|
else
|
||||||
COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling"
|
COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling -g"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#ensure deps are compiled
|
#ensure deps are compiled
|
||||||
|
|
|
@ -18,7 +18,7 @@ cd curl
|
||||||
|
|
||||||
autoreconf -fi
|
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
|
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
|
rm -rf $PREFIX
|
||||||
mkdir -p $PREFIX/include
|
mkdir -p $PREFIX/include
|
||||||
|
|
|
@ -16,7 +16,7 @@ git clone -b master --depth=1 https://github.com/wolfSSL/wolfssl wolfssl
|
||||||
cd wolfssl
|
cd wolfssl
|
||||||
|
|
||||||
autoreconf -fi
|
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
|
emmake make -j$CORE_COUNT
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue