# 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.
dpkg-buildpackage -us -uc -rfakeroot on 1.0.2:
# Add here commands to compile the package. NgDOicxSBR/ pbzip2- 1.0.2' SOURCE -D_FILE_ OFFSET_ BITS=64 -o pbzip2 pbzip2.cpp -pthread -lpthread -lbz2
/usr/bin/make CFLAGS="-Wall -O2"
make[1]: Entering directory `/tmp/tmp.
g++ -O3 -D_LARGEFILE64_
dpkg-buildpackage -us -uc -rfakeroot on 1.0.3
# Add here commands to compile the package. ERiGlnnXBD/ pbzip2- 1.0.3'
/usr/bin/make CFLAGS="-Wall -O2"
make[1]: Entering directory `/tmp/tmp.
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.