From 4096115b48e88881a73218b15e4f83ea128abbad Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 Feb 2023 14:22:03 -0700 Subject: [PATCH] [wasm-graphite] Export malloc/free Makes the wasm-micro-runtime use these instead of internal heap. --- src/wasm/graphite/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm/graphite/Makefile b/src/wasm/graphite/Makefile index 7c1f28952..db40901fe 100644 --- a/src/wasm/graphite/Makefile +++ b/src/wasm/graphite/Makefile @@ -13,11 +13,11 @@ all: $(FONTS) -Wl,--strip-all \ -sERROR_ON_UNDEFINED_SYMBOLS=0 \ ~/graphite/src/libgraphite2.a \ + -Wl,--export=malloc -Wl,--export=free \ ~/wasm/wasi-sdk-19.0/share/wasi-sysroot/lib/wasm32-wasi/libc.a \ $< \ -o $@ -# -Wl,--export=malloc -Wl,--export=free \ %.wasm.ttf: %.ttf shape.wasm $(ADD_TABLE) python $(ADD_TABLE) $< $@ shape.wasm