--- /dev/null
+From b4b9bda38cc0d909228445affc0c0122df16d3de Mon Sep 17 00:00:00 2001
+From: Nick Bowler <nbowler@draconx.ca>
+Date: Mon, 27 Apr 2015 23:37:59 -0400
+Subject: [PATCH] Respect CFLAGS.
+
+---
+ configure | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+diff --git a/configure b/configure
+index 95779ab326a2..0358c0e24adc 100755
+--- a/configure
++++ b/configure
+@@ -1206,17 +1206,7 @@ cat >> Makefile <<_EOF
+ .SUFFIXES:
+ .SUFFIXES: $OBJ .cpp .h .c
+
+-ifdef DEBUG
+-OSCFLAGS = -O0 -g -pg -ggdb -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+-export LDFLAGS := -pg \$(LDFLAGS)
+-else
+- ifdef PROF
+- OSCFLAGS = -O3 -pg -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+- export LDFLAGS := -pg \$(LDFLAGS)
+- else
+- OSCFLAGS = -O3 -fomit-frame-pointer -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+- endif
+-endif
++OSCFLAGS = \$(CFLAGS) -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
+
+ TARGET ?= onscripter-en
+
+--
+2.2.2
+