From f21ac99487f29d9baea237f3d4bf4c1c44169f14 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Thu, 19 Feb 2026 20:49:59 +0100 Subject: [PATCH] add LDFLAGS to Makefile tested with: `make LDFLAGS="-Wl,--build-id=md5"` --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88305ce..5cff690 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,7 @@ GDTFLAG = -DALLOW_GDT # Compilation flags CFLAGS = -g #-static +LDFLAGS = # On SCO Unix Development System 3.2.2a, the const type qualifier does # not work correctly when using cc. The following line will cause it # to not be used and should be uncommented. @@ -66,7 +67,7 @@ OBJS = actors.o ballop.o clockr.o demons.o dgame.o dinit.o dmain.o\ nrooms.o objcts.o rooms.o sobjs.o supp.o sverbs.o verbs.o villns.o dungeon: $(OBJS) dtextc.dat - $(CC) $(CFLAGS) -o zork $(OBJS) $(LIBS) + $(CC) $(CFLAGS) -o zork $(OBJS) $(LDFLAGS) $(LIBS) install: zork dtextc.dat mkdir -p $(BINDIR) $(LIBDIR) $(MANDIR)/man6