emscripten_docker/povray_wasm/build_alpine.sh

23 lines
456 B
Bash

EMAIL="hi@mmcwilliams.com"
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/
sh prebuild.sh
cd ../
emconfigure ./configure "${ARGS[@]}"
exit 1
emmake make -j2