From f6c89d3f544362ed2069bf2b34c139f8db352c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Fri, 28 Apr 2023 20:34:55 -0400 Subject: [PATCH] Don't link with win32gdi unless it's enabled. --- src/conio/GNUmakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/conio/GNUmakefile b/src/conio/GNUmakefile index 1e4840e200..4c7d4351cf 100644 --- a/src/conio/GNUmakefile +++ b/src/conio/GNUmakefile @@ -5,7 +5,9 @@ include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rule CFLAGS += $(XPDEV-MT_CFLAGS) $(HASH_CFLAGS) $(ENCODE_CFLAGS) $(CIOLIB-MT_CFLAGS) ifeq ($(os),win32) - OBJS += $(MTOBJODIR)$(DIRSEP)win32gdi$(OFILE) + ifdef WITH_GDI + OBJS += $(MTOBJODIR)$(DIRSEP)win32gdi$(OFILE) + endif OBJS += $(MTOBJODIR)$(DIRSEP)SDL_win32_main$(OFILE) OBJS += $(MTOBJODIR)$(DIRSEP)win32cio$(OFILE) OBJS += $(MTOBJODIR)$(DIRSEP)ciolib_res$(OFILE) -- GitLab