8 while read symbol standard sumo; do
10 if [ "x$SUMO" = "xsumo" ]; then
13 if [ "$found" = "1" ]; then
14 eval "defined_${symbol}=yes"
16 eval "defined_${symbol}=no"
18 done < emscripten-symbols.def
20 nm /usr/local/lib/libsodium.23.dylib | \
24 eval "found=\$defined_${symbol}"
25 if [ "$found" = "yes" ]; then
27 elif [ "$found" != "no" ]; then
29 echo "*** [$symbol] was not expected ***" >&2
38 out='"_malloc","_free"'
39 while read symbol ; do
40 if [ ! -z "$out" ]; then
43 out="${out}\"${symbol}\""
49 out=$(symbols standard)
50 sed s/EXPORTED_FUNCTIONS_STANDARD=\'.*\'/EXPORTED_FUNCTIONS_STANDARD=\'${out}\'/ < emscripten.sh > emscripten.sh.tmp && \
51 mv -f emscripten.sh.tmp emscripten.sh
54 sed s/EXPORTED_FUNCTIONS_SUMO=\'.*\'/EXPORTED_FUNCTIONS_SUMO=\'${out}\'/ < emscripten.sh > emscripten.sh.tmp && \
55 mv -f emscripten.sh.tmp emscripten.sh
57 chmod +x emscripten.sh