CXXFLAGS problem

Tobias Grimm tobias.grimm at e-tobi.net
Sat Apr 12 11:46:54 UTC 2008


Hello!

With the recent dpkg-dev 1.4.18 availaible in Sid, dpkg-buildpackage
always exports the CXXFLAGS (and CFLAGS) environment variables.
Unfortunately VDR and all plug-ins use in their Makefiles:

    CXXFLAGS ?= ...

This means, that the CXXFLAGS-settings provided by the upstreams
Makefile will be ignored, because the CXXFLAGS environment variable has
precedence. That way, the plug-ins aren't compiled with "-fPIC" causing
FTBS's on non-i386-builds.

It seems to be very uncommon to use "CXXFLAGS ?= ...".  Most Makefiles
seem to use "CXXFLAGS = ...". So the ideal way would be to change this
in the upstream sources. But I'm not very motivated to contact all
upstream authors and ask them to make their sources Debian-compatible
:-) I've already asked Klaus, what he thinks about this, but haven't got
an answer yet.

There are several ways to solve this:

1. d-Patch all Makefiles
2. unexport CXXFLAGS in all debian/rules
3. overwrite CXXFLAGS in all debian/rules
4. Use Make.config in vdr-dev (which is included by all Plug-ins except
vdr-plugin-mlcd) to overwrite CXXFLAGS

4. Would be the easiest, because then nn plug-in must be touched. But
all plug-ins would then be compiled with the same CXXFLAGS, which might
not be appropriate for some of them. 1. Would be a lot of stupid work to
do. Same for 2 and 3, but then slightly less work.

I think a mix of 4 and 3 would be fine. Define default CXXFLAGS in
Make.config and when needed overwrite the CXXFLAGS in debian/rules.

What do you think?

Tobias








-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vdr-dvb-devel/attachments/20080412/56befa56/attachment-0001.pgp 


More information about the pkg-vdr-dvb-devel mailing list