#1113763 noiz2sa: do not override CFLAGS

Package:
src:noiz2sa
Source:
src:noiz2sa
Submitter:
Emanuele Rocca
Date:
2025-09-02 09:01:03 UTC
Severity:
normal
Tags:
#1113763#5
Date:
2025-09-02 08:59:00 UTC
From:
To:
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