From ba339a07d93a936f440f3a660f6c3aef898810b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 1 Dec 2020 13:42:07 +0100 Subject: [PATCH] :wrench: Windows stuff, again --- tests/plug/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/plug/Makefile b/tests/plug/Makefile index 93ba7f81..0f6d5945 100644 --- a/tests/plug/Makefile +++ b/tests/plug/Makefile @@ -13,7 +13,6 @@ else ifeq ($(shell uname), Linux) LDFLAGS += -shared else -CFLAGS += -DBUILD_ON_WINDOWS=1 LDFLAGS += -shared -lpsapi -fPIC -Wl,--export-all -Wl,--enable-auto-import LDFLAGS += -L../../ -lgwion LDLAGS += ../../libgwion.dll.a @@ -21,6 +20,10 @@ LDLAGS += ../../libgwion.a endif endif +ifeq (${BUILD_ON_WINDOWS}, 1) +CFLAGS += -DBUILD_ON_WINDOWS=1 +endif + all: ${NAME}.so -- 2.43.0