mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
fix cjson compile issues
This commit is contained in:
parent
e030ca6712
commit
e695b1d14a
6 changed files with 47 additions and 24 deletions
|
@ -8,9 +8,15 @@ OPENSSL_PREFIX=$(realpath build/openssl-wasm)
|
|||
CJSON_PREFIX=$(realpath build/cjson-wasm)
|
||||
CURL_PREFIX=$(realpath build/curl-wasm)
|
||||
|
||||
tools/openssl.sh
|
||||
tools/cjson.sh
|
||||
tools/curl.sh
|
||||
if [ ! -d $OPENSSL_PREFIX ]; then
|
||||
tools/openssl.sh
|
||||
fi
|
||||
if [ ! -d $CJSON_PREFIX ]; then
|
||||
tools/cjson.sh
|
||||
fi
|
||||
if [ ! -d $CURL_PREFIX ]; then
|
||||
tools/curl.sh
|
||||
fi
|
||||
|
||||
cp -r $OPENSSL_PREFIX/* $CURL_PREFIX
|
||||
cp -r $CJSON_PREFIX/* $CURL_PREFIX
|
|
@ -14,7 +14,10 @@ rm -rf cjson
|
|||
git clone -b master --depth=1 https://github.com/DaveGamble/cJSON cjson
|
||||
cd cjson
|
||||
|
||||
emmake make all
|
||||
sed -i 's/-fstack-protector-strong//' Makefile
|
||||
sed -i 's/-fstack-protector//' Makefile
|
||||
|
||||
emmake make CC="emcc" static
|
||||
INCLUDE_FILES="cJSON.h cJSON_Utils.h"
|
||||
LIB_FILES="libcjson.a libcjson_utils.a"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue