X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdebian%2Frules;h=cd0a58efb6ba21143fa8755eec7df37de41fbf46;hb=3dd282daca51256fe10f464a9397625d67e96489;hp=31541862deaa15df9a15e910fc04d9b3313cea0d;hpb=0a74941201f57008fc2ed8aaa4ff93b8e1d8ad45;p=citadel.git diff --git a/webcit/debian/rules b/webcit/debian/rules index 31541862d..cd0a58efb 100755 --- a/webcit/debian/rules +++ b/webcit/debian/rules @@ -17,8 +17,13 @@ DESTDIR=$(CURDIR)/debian/citadel-webcit EXTRA_ARGS= PROFILE_ARGS= -#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling compression urldebug iodbg" +COMPILER= +CFLAGS= +#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 +52,7 @@ endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif - CFLAGS="$(CFLAGS)" ./configure \ + export CC=$(COMPILER); export CFLAGS=" -Wformat -Werror=format-security $(CFLAGS)"; ./configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr/sbin/ \