From d4b117d946db4f0e92223118d062f077c2d60f96 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Mon, 8 May 2023 21:45:38 +0200 Subject: [PATCH] Mark all required CFLAGS and LDFLAGS definition as override. This fixes the build with the current Windows build environment. Fixes #31. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index eab9ff3..1a36451 100644 --- a/Makefile +++ b/Makefile @@ -120,15 +120,15 @@ endif # ---------- # Defines the operating system and architecture -CFLAGS += -DYQ2OSTYPE=\"$(YQ2_OSTYPE)\" -DYQ2ARCH=\"$(YQ2_ARCH)\" +override CFLAGS += -DYQ2OSTYPE=\"$(YQ2_OSTYPE)\" -DYQ2ARCH=\"$(YQ2_ARCH)\" # ---------- # Base LDFLAGS. ifeq ($(YQ2_OSTYPE), Darwin) -LDFLAGS := -shared -arch $(YQ2_ARCH) +override LDFLAGS := -shared -arch $(YQ2_ARCH) else -LDFLAGS := -shared +override LDFLAGS := -shared endif # ----------