From 55ccd76b7c5594ddf30fbe25d6e5fc437353f58d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 1 Sep 2011 17:07:06 +0000 Subject: [PATCH] start working on a way do do CLANG compilation. --- citadel/debian/rules | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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/ \ -- 2.39.2