On Sat, Jun 09, 2012 at 03:29:03AM +0300, Sami Liedes wrote: > Package: audacity > Version: 2.0.0-1 > Severity: normal > > While trying to build a debuggable package with > > DEB_BUILD_OPTIONS="noopt nostrip", > > I ran into this. > > Even with DEB_BUILD_OPTIONS=noopt, most of the modules in the project > are built with -O2, while some are correctly built with -O0 (as the > last -O option takes precedence). Most notably, the core Audacity core > is built with -O2. These modules seem to be compiled with -O2: > > * all modules inside src/ > > AND > > * the modules inside lib-src/portmixer/
Turns out the culprit is libportsmf-dev, which installs a pkg-config file /usr/lib/pkgconfig/portSMF.pc which includes some compiler flags in its Cflags that no pkg-config file normally has business of including, hence causing packages using it to be always compiled with -g -O2 -Wall: ------------------------------------------------------------ $ grep Cflags /usr/lib/pkgconfig/portSMF.pc Cflags: -I${includedir}/portSMF -g -O2 -Wall ------------------------------------------------------------ Sami
signature.asc
Description: Digital signature