here's a proposed patch that works for me:

diff --git a/debian/rules b/debian/rules
index b0d2769..3e30e01 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,7 +20,12 @@ endif
 
 CC=gcc
 INSTALL=/usr/bin/install
-CFLAGS := -g -O2 -fno-strength-reduce -D_REENTRANT -D_XOPEN_SOURCE=500 $(CFLAGS_ALPHA)
+CFLAGS := -g -fno-strength-reduce -D_REENTRANT -D_XOPEN_SOURCE=500 $(CFLAGS_ALPHA)
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
 ELF_CFLAGS = $(CFLAGS) -fPIC
 
 SOMAJOR=2

Reply via email to