reassign 596260 src:bash
found 596260 bash/4.1-3
retitle 596260 bash: Please use dpkg-buildflags for DEB_BUILD_OPTIONS support
tags 596260 - patch
# policy ยง4.9.1
severity 596260 important
quit

Witold Baryluk wrote:

> In Debian main mechanism for providing building flags when building
> packages is by using /etc/dpkg/buildflags.conf.
> 
> This file is readed by dpkg-buildpackage, and nacassary
> environment variables are created before debian/rules
> is executed.
> 
> bash's debian/rules, unconditionally overwrites all flags.
> 
> 
> Single change to debian/rules fixes this:
> 
> -CFLAGS = -O2 -g -Wall
> +CFLAGS ?= -O2 -g -Wall

Actually it should be something like

 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)

(I know you know that, just writing it for the bug log.)

Thanks for a reminder.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to