Bug#613046: debian-policy: please update example in 4.9.1 (debian/rules and DEB_BUILD_OPTIONS)
On Sat, Feb 12, 2011 at 14:25:40 +0100, Niels Thykier wrote:
> Package: debian-policy
> Version: 18.104.22.168
> Severity: minor
> The example in 4.9.1 suggests to set CFLAGS in a way that completely
> overrides values from dpkg-buildpackage/dpkg-buildflags:
> CFLAGS = -Wall -g
> This will set CFLAGS to "-Wall -g" regardless of what dpkg-buildflags
> provides. Possible alternatives that appears to work are:
> CFLAGS := $(CFLAGS) -Wall -g
That would be wrong. A package build shouldn't depend on random env
> CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall -g
> While related to #578597, I believe it to be a distinct issue. This was triggered
> by this email on debian-mentors.
Seems to be the exact same request to me?