From 89ecfe7ba123b7677a6a7e494a1d12948663ff72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 17 Jun 2010 19:52:33 +0000 Subject: [PATCH] * add possibility to chose clang via environment --- webcit/debian/rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webcit/debian/rules b/webcit/debian/rules index 31541862d..f97e5d04e 100755 --- a/webcit/debian/rules +++ b/webcit/debian/rules @@ -17,8 +17,12 @@ DESTDIR=$(CURDIR)/debian/citadel-webcit EXTRA_ARGS= PROFILE_ARGS= -#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling compression urldebug iodbg" +COMPILER= +#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling compression urldebug iodbg clang" +ifneq (,$(findstring clang,$(DEB_BUILD_OPTIONS))) + COMPILER="clang" +endif ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS))) PROFILE_ARGS= --with-gprof LDFLAGS += -pg @@ -47,7 +51,7 @@ endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif - CFLAGS="$(CFLAGS)" ./configure \ + CC=$(COMPILER) CFLAGS="$(CFLAGS)" ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr/sbin/ \ -- 2.30.2