[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#578597: Recommend usage of dpkg-buildflags to initialize CFLAGS and al.



On Wed, 21 Apr 2010, Bill Allombert wrote:
> Suppose user set CFLAGS to XXX. How C files should build ?

Have you read the dpkg-buildflags manual page? If the user wants to modify 
CFLAGS he doesn't set it manually but he uses one of the facility to
extend/override it. The result returned by dpkg-buildflags is supposed to
give the full CFLAGS.

So in your list:
> gcc XXX -fno-strict-aliasing foo.c

Is the right one given XXX=$(shell dpkg-buildflags --get CFLAGS).

Cheers,
-- 
Raphaël Hertzog

Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/



Reply to: