From 7f092de972d09460cf7bb81ede4e3838e4ffa7d3 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Tue, 23 Jul 2024 07:02:36 +0300 Subject: [PATCH] Use non-prefixed windres for msys2. #372 --- src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d6c7829d..2827e00f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -11,7 +11,12 @@ TARGET = goodbyedpi.exe #LIBS = -L$(WINDIVERTLIBS) -Wl,-Bstatic -lssp -Wl,-Bdynamic -lWinDivert -lws2_32 LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32 -l:libssp.a CC = $(CPREFIX)gcc -CCWINDRES = $(CPREFIX)windres + +CCWINDRES = windres +ifeq (, $(shell which $(CPREFIX)windres)) + CCWINDRES = windres +endif + CFLAGS = -std=c99 -pie -fPIE -pipe -I$(WINDIVERTHEADERS) -L$(WINDIVERTLIBS) \ -O2 -D_FORTIFY_SOURCE=2 -fstack-protector \ -Wall -Wextra -Wpedantic -Wformat=2 -Wformat-overflow=2 -Wformat-truncation=2 \