From 3583fd517ef7bfbb122e623eca805e70ce85b319 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 8 Jan 2022 20:38:22 -0500 Subject: [PATCH] libnh follow-up --- sys/libnh/test/run.sh | 2 +- sys/unix/hints/linux.370 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/libnh/test/run.sh b/sys/libnh/test/run.sh index 2c415d095..96ead1482 100755 --- a/sys/libnh/test/run.sh +++ b/sys/libnh/test/run.sh @@ -12,7 +12,7 @@ if [ x$1 == "xlib" ]; then fi if [ x$1 == "xrunlib" ]; then - LIBS="-Lsrc -lnethack -Llib/lua -llua -lm" + LIBS="-Lsrc -lnh -Llib/lua -llua -lm" BADLIBS="-lncurses" rm nhlibtest gcc -o nhlibtest libtest.c $LIBS $BADLIBS diff --git a/sys/unix/hints/linux.370 b/sys/unix/hints/linux.370 index 07d8e319a..233ca6dff 100755 --- a/sys/unix/hints/linux.370 +++ b/sys/unix/hints/linux.370 @@ -172,14 +172,15 @@ GITBRANCH = -DNETHACK_GIT_BRANCH=\"$(GIT_BRANCH)\" endif ifdef WANT_LIBNH -CFLAGS += -DSHIM_GRAPHICS -DNOTTYGRAPHICS -DNOSHELL -DLIBNH +CFLAGS += -DSHIM_GRAPHICS -DNOTTYGRAPHICS -DNOSHELL -DLIBNH -fpic LIBNHSYSSRC = ../sys/libnh/libnhmain.c \ ../sys/share/ioctl.c ../sys/share/unixtty.c \ ../sys/unix/unixunix.c ../sys/unix/unixres.c \ ../win/shim/winshim.c LIBNHSYSOBJ = $(TARGETPFX)libnhmain.o $(TARGETPFX)ioctl.o \ $(TARGETPFX)unixtty.o $(TARGETPFX)unixunix.o \ - $(TARGETPFX)unixres.o $(TARGETPFX)winshim.o + $(TARGETPFX)unixres.o $(TARGETPFX)winshim.o \ + $(TARGETPFX)date.o #don't bother building the game executable as it will fail #without winshim override GAME=