Bug#676713: audacity: DEB_BUILD_OPTIONS=noopt still compiles some files with -O2

Sami Liedes sami.liedes at iki.fi
Sat Jun 9 00:53:56 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20120609/a99f20c3/attachment.pgp>


More information about the pkg-multimedia-maintainers mailing list