Source: noiz2sa Version: 0.51a-13 User: [email protected] Usertags: pac-bti Tags: patch
Hi, noiz2sa correctly honors the default build flags set by dpkg-buildflags when building code written in C++, for example: make[2]: Entering directory '/build/reproducible-path/noiz2sa-0.51a/src/bulletml/tinyxml' g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/noiz2sa-0.51a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/noiz2sa-0.51a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard tinyxml.cpp -o tinyxml.o It does not, however, honor CFLAGS: make[2]: Entering directory '/build/reproducible-path/noiz2sa-0.51a/src' gcc `sdl-config --cflags` -Wl,-z,relro `sdl-config --cflags` -Wl,-z,relro -I/usr/include -c -o noiz2sa.o noiz2sa.c Please consider applying the attached patch. Thanks, Emanuele
>From 664ce05b372c35ef5ba502e8c386ed321e9a1c8a Mon Sep 17 00:00:00 2001 From: Emanuele Rocca <[email protected]> Date: Tue, 2 Sep 2025 10:44:35 +0200 Subject: [PATCH] Makefile: append to CFLAGS --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d533473..cddae8e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ LDFLAGS = `sdl-config --libs` -lSDL_mixer -Lbulletml \ MORE_CFLAGS ?= -O3 -CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) +CFLAGS += $(DEFAULT_CFLAGS) $(MORE_CFLAGS) CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I/usr/include OBJS = $(NAME).$(O) ship.$(O) shot.$(O) frag.$(O) bonus.$(O) \ -- 2.39.5

