Bug#492941: Still building with -O2 when DEB_BUILD_OPTIONS=noopt is set
Kevin Shanahan
kmshanah at disenchant.net
Wed Jul 30 04:20:55 UTC 2008
Package: asterisk
Version: 1.4.21.2~dfsg-1
Severity: minor
$ DEB_BUILD_OPTIONS=noopt dpkg-buildpackage -B -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O0
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O0
dpkg-buildpackage: set CXXFLAGS to default value: -g -O0
dpkg-buildpackage: source package asterisk
dpkg-buildpackage: source version 1:1.4.21.2~dfsg-1
dpkg-buildpackage: source changed by Faidon Liambotis <paravoid at debian.org>
dpkg-buildpackage: host architecture amd64
...looks okay so far, but later...
configure: Package configured for:
configure: OS type : linux-gnu
configure: Host CPU : x86_64
PATH=$PATH:/home/kmshanah/debs/asterisk/asterisk-1.4.21.2~dfsg/debian/dummyprogs /usr/bin/make OPTIMIZE=-O2 MAKECMDGOALS=dont-optimize NOISY_BUILD=yes MENUSELECT_MOH= ASTDATADIR=/usr/share/asterisk ASTVARRUNDIR=/var/run/asterisk menuselect.makeopts
...and then...
x86_64-linux-gnu-gcc -o astman.o -c astman.c -pthread -I/home/kmshanah/debs/asterisk/asterisk-1.4.21.2~dfsg/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /home/kmshanah/debs/asterisk/asterisk-1.4.21.2~dfsg/include/asterisk/autoconfig.h -march=k8 -O2 -MD -MT astman.o -MF .astman.o.d -MP
x86_64-linux-gnu-gcc -o md5.o -c md5.c -pthread -I/home/kmshanah/debs/asterisk/asterisk-1.4.21.2~dfsg/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /home/kmshanah/debs/asterisk/asterisk-1.4.21.2~dfsg/include/asterisk/autoconfig.h -march=k8 -O2 -MD -MT md5.o -MF .md5.o.d -MP
etc.
Just as a quick hack, editing debian/rules line from:
BUILDFLAGS += OPTIMIZE=-O2
to:
BUILDFLAGS += OPTIMIZE=-O0
seems to make everything compile with -O0.
More information about the Pkg-voip-maintainers
mailing list