diff --git a/debian/rules b/debian/rules
index af701133d18702d586f632c4e336d96e9cbb53b1..27220867a86a3aba4919be8ada8bffdb8d4ff336 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
#path to our ttf font
CONFFLAGS += --with-rrd-default-font=/usr/share/rrdtool/librrd$(LIB_major)/DejaVuSansMono-Roman.ttf
+#path to tcl
+CONFFLAGS += --with-tcllib=/usr/lib/tcl$(TCL_VERS)
#let's take care of optimization + debug builds
CFLAGS += -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
+#don't optimize on arm for now - #447041
+ifneq ($(DEB_HOST_GNU_TYPE), arm)
CFLAGS += -O2
endif
+endif
-LDFLAGS="-Wl,-z,defs"
+# work-around for a broken dpkg - do not rename this to LDFLAGS :-/
+LINKER_FLAGS=-Wl,-z,defs
configure: config.status
config.status: $(QUILT_STAMPFN)
cp -f /usr/share/misc/config.guess config.guess
endif
- LDFLAGS="$(LDFLAGS)"
+ LDFLAGS="$(LINKER_FLAGS)" \
CFLAGS="$(CFLAGS)" \
RRDDOCDIR=/usr/share/doc/rrdtool \
./configure $(CONFFLAGS)