Description: Enforce dpkg build flags
 The right build flags are stored in mkoctfile, so reuse them.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: no
Last-Update: 2014-01-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,7 +8,7 @@
 	$(MKOCTFILE) $<
 
 bwlabeln.oct: bwlabeln.cc union-find.h++
-	CXXFLAGS='-g -O2 -std=c++0x -Wall' $(MKOCTFILE) $<
+	CXXFLAGS='$(shell mkoctfile -p CXXFLAGS) -std=c++0x -Wall' $(MKOCTFILE) $<
 
 imerode.oct: imerode.cc strel.cc
 	$(MKOCTFILE) $^ -o $@
