we need to run export for wheezy.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 16 Oct 2011 21:30:28 +0000 (23:30 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 16 Oct 2011 21:30:28 +0000 (23:30 +0200)
libcitadel/debian/rules

index 7bfdf7e..0420dc5 100755 (executable)
@@ -17,7 +17,8 @@ ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
        EXTRA_ARGS =  --with-backtrace
 else
-       CFLAGS += -O2 -fPIC
+#      CFLAGS += -O2 -fPIC
+       CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
 endif
 
 ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
@@ -39,7 +40,7 @@ build: build-stamp
 build-stamp:
        dh_testdir
 
-       CFLAGS="$(CFLAGS)"; LDFLAGS="$(LDFLAGS)";  ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+       export CFLAGS="$(CFLAGS)"; export LDFLAGS="$(LDFLAGS)";  ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
                $(EXTRA_ARGS) \
                --prefix=/usr