Bug#561160: boswars: DEB_BUILD_OPTIONS=noopt still compiles with -O2
Kalle Olavi Niemitalo
kon at iki.fi
Mon Dec 14 21:58:40 UTC 2009
Package: boswars
Version: 2.5-2
Severity: normal
I ran DEB_BUILD_OPTIONS=noopt dpkg-buildpackage,
but files were compiled with -O2 anyway:
g++ -o build/release/action/action_follow.o -c -DSTRATAGUS_LIB_PATH=\"/usr/share/games/boswars\" -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -ffast-math -DUSE_VORBIS -DUSE_THEORA -DUSE_OGG -DHAVE_STRCASESTR -DHAVE_STRNLEN -DHAVE_X -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/include/lua5.1 -I/usr/include -I/usr/include/SDL -Iengine/include -Iengine/guichan/include engine/action/action_follow.cpp
It appears that debian/rules checks $(findstring noopt,$(DEB_BUILD_OPTIONS))
and sets CFLAGS += -O0, but it does not pass the resulting CFLAGS
to scons in any way: neither in the environment nor in the command line.
Even if it did, the value would apparently be ignored;
the SConstruct file mentions CCFLAGS but not CFLAGS.
I suggest changing debian/rules to place the optimization options
in CCFLAGS instead.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (900, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages boswars depends on:
ii boswars-data 2.5-2 Images, data, and music files for
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libgcc1 1:4.4.2-4 GCC support library
ii libgl1-mesa-glx [libgl 7.6.1~rc3-1 A free implementation of the OpenG
ii liblua5.1-0 5.1.4-5 Simple, extensible, embeddable pro
ii libogg0 1.1.4~dfsg-1 Ogg bitstream library
ii libpng12-0 1.2.41-1 PNG library - runtime
ii libsdl1.2debian 1.2.13-5 Simple DirectMedia Layer
ii libstdc++6 4.4.2-4 The GNU Standard C++ Library v3
ii libtheora0 1.1.1+dfsg.1-1 The Theora Video Compression Codec
ii libvorbis0a 1.2.3-3 The Vorbis General Audio Compressi
ii libx11-6 2:1.3.2-1 X11 client-side library
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
boswars recommends no packages.
boswars suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20091214/74dcbe6a/attachment.pgp>
More information about the Pkg-games-devel
mailing list