emscripten_docker/povray_wasm/build_ubuntu.sh

15 lines
510 B
Bash

#!/bin/bash -x
EMAIL="hi@mmcwilliams.com"
NAME="Matt McWilliams"
#CPPFLAGS="-Wall -Wextra -Werror -I/usr/include/OpenEXR"
#CPPFLAGS="-pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -Wno-non-template-friend -s -O3 -ffast-math -march=native"
CPPFLAGS="-include uint-hack.h -I/usr/include/OpenEXR"
cd unix/
./prebuild.sh
cd ../
emconfigure ./configure COMPILED_BY="$NAME <$EMAIL>" LDFLAGS="-Wl,-V"
echo "typedef unsigned int uint;" > uint-hack.h
emmake make -j CPPFLAGS="${CPPFLAGS}"
#make install