Package: cupt Version: 2.0.2 Severity: normal It seems the cupt source package does not honor DEB_BUILD_OPTIONS=noopt, which makes debugging a bit more difficult than necessary.
As you can see, all the sources are compiled with -O2:
------------------------------------------------------------
$ debuild -e DEB_BUILD_OPTIONS="noopt nostrip" -e VERBOSE=1
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O0
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O0
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O0
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
...
make[1]: Entering directory `/home/sliedes/scratch/rec/cupt/cupt-2.0.2'
cmake -DLOCAL:bool=OFF
-DCMAKE_INSTALL_PREFIX=/home/sliedes/scratch/rec/cupt/cupt-2.0.2/debian/tmp/usr
-DOPTIMIZE=2 ./
Re-run cmake no build system arguments
...
[ 0%] Generating precompiled.hpp.gch
cd /home/sliedes/scratch/rec/cupt/cupt-2.0.2/cpp/precompiled &&
/usr/bin/g++-4.5 -I../lib/include -Wall -Wextra -std=gnu++0x -fPIC -DNDEBUG -O2
-DCUPT_VERSION=2.0.2 -x c++-header -c precompiled.hpp -o precompiled.hpp.gch
...
[ 3%] Building CXX object
cpp/lib/CMakeFiles/cupt2.dir/src/internal/common.cpp.o
cd /home/sliedes/scratch/rec/cupt/cupt-2.0.2/cpp/lib && /usr/bin/g++-4.5
-Dcupt2_EXPORTS -Wall -Wextra -std=gnu++0x -fPIC -DNDEBUG -O2
-DCUPT_VERSION=2.0.2 -DSOVERSION=0 -fvisibility=hidden -fPIC
-I/home/sliedes/scratch/rec/cupt/cupt-2.0.2/cpp/lib/include
-I/home/sliedes/scratch/rec/cupt/cupt-2.0.2/cpp/lib/src -include
../precompiled/precompiled.hpp -Winvalid-pch -o
CMakeFiles/cupt2.dir/src/internal/common.cpp.o -c
/home/sliedes/scratch/rec/cupt/cupt-2.0.2/cpp/lib/src/internal/common.cpp
[...]
------------------------------------------------------------
Sami
-- System Information:
Debian Release: wheezy/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
signature.asc
Description: Digital signature

