From: Dale Richards Date: Thu, 11 Jun 2026 15:04:29 +0100 Subject: tests/Makefile: Do not override compiler flags The tests Makefile assigns CFLAGS/LDFLAGS with "=", discarding the hardening and other flags passed in from the environment. Append with "+=" instead so the distribution build flags are honoured. Forwarded: https://github.com/geoffreybennett/alsa-scarlett-gui/pull/260 --- src/tests/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/Makefile b/src/tests/Makefile index 108320e..a768c93 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -5,8 +5,8 @@ PKG_CONFIG ?= pkg-config TESTS = test-biquad -CFLAGS = -I.. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0) -LDFLAGS = -lm $(shell $(PKG_CONFIG) --libs glib-2.0) +CFLAGS += -I.. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0) +LDFLAGS += -lm $(shell $(PKG_CONFIG) --libs glib-2.0) all: $(TESTS)