Description: Respect noopt in DEB_BUILD_OPTIONS.
Author: Stefano Rivera <stefano@rivera.za.net>
Forwarded: not-needed
Last-Update: 2010-03-12

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -69,7 +69,11 @@
 JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
 JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
 
-CFLAGS=-Iinclude -O2 -g
+CFLAGS=-Iinclude -g
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS+=-O2
+endif
+
 CPPFLAGS=-W -Wall -Wmissing-prototypes -Wmissing-declarations
 
 all: snowball libstemmer.so stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
