Comment 3 for bug 363793

Revision history for this message
Tim 'Shaggy' Bielawa (tbielawa) wrote :

dpkg-buildpackage -us -uc -rfakeroot on 1.0.2:

# Add here commands to compile the package.
/usr/bin/make CFLAGS="-Wall -O2"
make[1]: Entering directory `/tmp/tmp.NgDOicxSBR/pbzip2-1.0.2'
g++ -O3 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o pbzip2 pbzip2.cpp -pthread -lpthread -lbz2

dpkg-buildpackage -us -uc -rfakeroot on 1.0.3

# Add here commands to compile the package.
/usr/bin/make CFLAGS="-Wall -O2"
make[1]: Entering directory `/tmp/tmp.ERiGlnnXBD/pbzip2-1.0.3'
g++ -Wall -O2 pbzip2.cpp -o pbzip2 -pthread -lpthread -lbz2

I had to read chapter 6.6 of the GNU Make handbook to figure it out, but the problem is happening then the rules file defines CFLAGS then the Makefile attempts to modify the variable.

Patch attached.