Use better threads
This commit is contained in:
parent
33985807d7
commit
40cbd61e3b
|
@ -1,9 +1,23 @@
|
||||||
EMAIL="hi@mmcwilliams.com"
|
EMAIL="hi@mmcwilliams.com"
|
||||||
NAME="Matt McWilliams"
|
NAME="Matt McWilliams"
|
||||||
|
|
||||||
|
CFLAGS="-pthread" #-DBOOST_THREAD_USE_LIB -s USE_BOOST_HEADERS=1
|
||||||
|
LDFLAGS="$CFLAGS -s INITIAL_MEMORY=33554432 -Wl -V"
|
||||||
|
|
||||||
|
ARGS=(
|
||||||
|
#LIBS="-lboost_system -lboost_thread -lboost_date_time"
|
||||||
|
COMPILED_BY="$NAME <$EMAIL>"
|
||||||
|
CC=emcc
|
||||||
|
CXX=em++
|
||||||
|
CFLAGS="$CFLAGS"
|
||||||
|
CXXFLAGS="$CFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS"
|
||||||
|
--host=wasm32
|
||||||
|
)
|
||||||
|
|
||||||
cd unix/
|
cd unix/
|
||||||
sh prebuild.sh
|
sh prebuild.sh
|
||||||
cd ../
|
cd ../
|
||||||
emconfigure ./configure COMPILED_BY="$NAME <$EMAIL>" LDFLAGS="-Wl,-V"
|
emconfigure ./configure "${ARGS[@]}"
|
||||||
exit 1
|
exit 1
|
||||||
emmake make -j2
|
emmake make -j2
|
Loading…
Reference in New Issue