debian: Add mechanism to set C/C++ compiler

This commit is contained in:
Travis Cross 2012-06-24 08:46:00 +00:00
parent 3c2f914617
commit 12efacb3c6
1 changed files with 6 additions and 0 deletions

6
debian/rules vendored
View File

@ -4,10 +4,14 @@
#export DH_VERBOSE=1
FS_CC?=gcc
FS_CXX?=g++
FS_CFLAGS?=-ggdb3 -O2
FS_CPPFLAGS?=
FS_CXXFLAGS?=$(FS_CFLAGS)
export PATH?=/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin
export CC=$(FS_CC)
export CXX=$(FS_CXX)
export CFLAGS=$(FS_CFLAGS)
export CPPFLAGS=$(FS_CPPFLAGS)
export CXXFLAGS=$(FS_CXXFLAGS)
@ -16,6 +20,8 @@ show_vars= \
echo; \
echo "Making target $@"; \
echo "PATH='$(PATH)'"; \
echo "CC='$(CC)'"; \
echo "CXX='$(CXX)'"; \
echo "CFLAGS='$(CFLAGS)'"; \
echo "CXXFLAGS='$(CXXFLAGS)'"; \
echo "CCACHE_DIR='$(CCACHE_DIR)'"; \