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

Re: (re)compiling debian packages with ccc

On Wed, Feb 05, 2003 at 05:54:18PM +0000, Colin Watson wrote:
 > You'll find that a lot of Debian source packages set CFLAGS
 > themselves, and may use gcc-specific flags. It's not obvious whether
 > it's a bug that they don't honour a user-set CFLAGS: I can see
 > arguments on both sides (autobuild consistency versus user
 > overrides). Since as far as I know we don't have any policy on this,
 > you may well find yourself having to change some debian/rules files.


$ cat > test
CFLAGS = -O2 -fweird-gcc-option

	@echo $(CFLAGS)
$ CFLAGS="-O2 -fweirder-ccc-option" make -f test 
-O2 -fweird-gcc-option
$ CFLAGS="-O2 -fweirder-ccc-option" make -e -f test 
-O2 -fweirder-ccc-option

 obviously I missed your point... getting this sort of stuff to
 percolate down from debian/rules to arbitraly deep make calls is
 another thing, but presumably if you are setting CFLAGS in debian/rules
 you (the maintainer) already took care of that problem.

 -e is generally not the smartest thing to use, but since you are
 autobuilding, you can control what's in the environment.


Reply to: