From: Adam Powers Date: Mon, 19 Oct 2020 18:54:42 +0000 (-0700) Subject: wasm requires HACKDIR for embedded files X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6598b3d2d0c3a630aea1325f6483781096d09200;p=nethack wasm requires HACKDIR for embedded files --- diff --git a/sys/unix/hints/macOS.2020 b/sys/unix/hints/macOS.2020 index 85f9b3208..e6fae4c06 100755 --- a/sys/unix/hints/macOS.2020 +++ b/sys/unix/hints/macOS.2020 @@ -281,6 +281,11 @@ POSTINSTALL+= if test -f $(SHELLDIR)/$(GAME); then \ endif # WANT_BUNDLE endif # !WANT_SHARE_INSTALL +ifdef CROSS_TO_WASM +HACKDIR=/ +PREFIX= +endif # !CROSS_TO_WASM + INSTDIR=$(HACKDIR) VARDIR=$(HACKDIR) @@ -294,6 +299,7 @@ VARDIR=$(HACKDIR) #-INCLUDE cross-pre.2020 # #-POST + ifdef WANT_LIBNH libnh.a: $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a $(AR) rcs $@ $(HOBJ) $(LIBNHSYSOBJ) ../lib/lua/liblua.a