[pkg-boost-devel] Bug#506939: boost: setting CFLAGS in debian/rules clobbers environment

Steve Langasek steve.langasek at canonical.com
Wed Nov 26 07:18:19 UTC 2008


Package: boost
Version: 1.34.1-14
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch jaunty

Hi folks,

I see in the latest version of boost that you're setting
CFLAGS=-fno-strict-aliasing directly in debian/rules.  This is somewhat
suboptimal; first, because there's already a patch in the package
(debian/patches/bjam-no-strict-aliasing) to do exactly this, and second,
because this clobbers any CFLAGS value that might have been set in the
package build environment with the intent that it be picked up by packages
(e.g., build hardening flags).

The attached patch is used in Ubuntu to ensure bjam uses 'gcc' instead of
'cc' as its compiler, allowing debian/patches/bjam-no-strict-aliasing to
take effect without clobbering other build flags.  I believe this would be
appropriate to apply in Debian as well.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost-bjam.patch
Type: text/x-diff
Size: 1140 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20081125/4b0ec55e/attachment-0001.patch 


More information about the pkg-boost-devel mailing list