Debian Codegraph @

debian/patches/0002-tests-Makefile-Do-not-override-compiler-flags.patch

raw
1 From: Dale Richards <[email protected]>
2 Date: Thu, 11 Jun 2026 15:04:29 +0100
3 Subject: tests/Makefile: Do not override compiler flags
4
5 The tests Makefile assigns CFLAGS/LDFLAGS with "=", discarding the
6 hardening and other flags passed in from the environment. Append with
7 "+=" instead so the distribution build flags are honoured.
8
9 Forwarded: https://github.com/geoffreybennett/alsa-scarlett-gui/pull/260
10 ---
11 src/tests/Makefile | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git a/src/tests/Makefile b/src/tests/Makefile
15 index 108320e..a768c93 100644
16 --- a/src/tests/Makefile
17 +++ b/src/tests/Makefile
18 @@ -5,8 +5,8 @@ PKG_CONFIG ?= pkg-config
19
20 TESTS = test-biquad
21
22 -CFLAGS = -I.. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0)
23 -LDFLAGS = -lm $(shell $(PKG_CONFIG) --libs glib-2.0)
24 +CFLAGS += -I.. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0)
25 +LDFLAGS += -lm $(shell $(PKG_CONFIG) --libs glib-2.0)
26
27 all: $(TESTS)
28