From: Wilfried Goesgens Date: Thu, 1 Sep 2011 17:07:06 +0000 (+0000) Subject: start working on a way do do CLANG compilation. X-Git-Tag: v8.11~987 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=55ccd76b7c5594ddf30fbe25d6e5fc437353f58d;p=citadel.git start working on a way do do CLANG compilation. --- diff --git a/citadel/debian/rules b/citadel/debian/rules index 5c51eb473..a28907b67 100755 --- a/citadel/debian/rules +++ b/citadel/debian/rules @@ -13,10 +13,13 @@ DEB_DESTDIR = $(CURDIR)/debian/tmp CFLAGS = -Wall -g - +COMPILER= EXTRA_ARGS= PROFILE_ARGS= -#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling threadoff rss gcov" +#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling threadoff rss gcov clang" +ifneq (,$(findstring clang,$(DEB_BUILD_OPTIONS))) + COMPILER="clang" +endif ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS))) PROFILE_ARGS= --with-gprof endif @@ -57,7 +60,7 @@ configure: configure-stamp configure-stamp: dh_testdir - LDFLAGS="$(LDFLAGS)"; CFLAGS="$(CFLAGS)" ./configure \ + CC=$(COMPILER); LDFLAGS="$(LDFLAGS)"; CFLAGS="$(CFLAGS)" ./configure \ --prefix=/var/lib/citadel/ \ --with-datadir=/var/lib/citadel/ \ --with-helpdir=/usr/share/citadel-server/ \