Mark all required CFLAGS and LDFLAGS definition as override.

This fixes the build with the current Windows build environment.

Fixes #31.
This commit is contained in:
Yamagi 2023-05-08 21:45:38 +02:00
parent bd7cc48abb
commit d4b117d946

View file

@ -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
# ----------