From 96e10b90b1bbd85716df314272e8cad64e256f9d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 25 Apr 2025 00:44:13 +0300 Subject: DOS: Eliminate unused code This reduces the binary size by a few kilobytes. --- Makefile.wcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.wcc b/Makefile.wcc index 5cd1420..57684f2 100644 --- a/Makefile.wcc +++ b/Makefile.wcc @@ -24,8 +24,8 @@ CFLAGS = -d0 -onasx -oh # Perhaps it would be more elegant to have a DOS-specific config.h. # # Large data model: far code and data pointers -CFLAGS += -q -wx -ze -j -0 -ml -bt=DOS @WCC_DEFS -LDFLAGS += format dos option map option stack=16k & +CFLAGS += -q -wx -ze -zm -j -0 -ml -bt=DOS @WCC_DEFS +LDFLAGS += format dos option eliminate option map option stack=16k & libpath $(%WATCOM)/lib286:$(%WATCOM)/lib286/dos .BEFORE -- cgit v1.2.3