[wasm-graphite] Export malloc/free

Makes the wasm-micro-runtime use these instead of internal heap.
This commit is contained in:
Behdad Esfahbod 2023-02-25 14:22:03 -07:00
parent 7b1c5e86ae
commit 4096115b48
1 changed files with 1 additions and 1 deletions

View File

@ -13,11 +13,11 @@ all: $(FONTS)
-Wl,--strip-all \ -Wl,--strip-all \
-sERROR_ON_UNDEFINED_SYMBOLS=0 \ -sERROR_ON_UNDEFINED_SYMBOLS=0 \
~/graphite/src/libgraphite2.a \ ~/graphite/src/libgraphite2.a \
-Wl,--export=malloc -Wl,--export=free \
~/wasm/wasi-sdk-19.0/share/wasi-sysroot/lib/wasm32-wasi/libc.a \ ~/wasm/wasi-sdk-19.0/share/wasi-sysroot/lib/wasm32-wasi/libc.a \
$< \ $< \
-o $@ -o $@
# -Wl,--export=malloc -Wl,--export=free \
%.wasm.ttf: %.ttf shape.wasm $(ADD_TABLE) %.wasm.ttf: %.ttf shape.wasm $(ADD_TABLE)
python $(ADD_TABLE) $< $@ shape.wasm python $(ADD_TABLE) $< $@ shape.wasm