--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@
 #	use our recommended settings.
 #CFLAGS ?= -Wall -g -O2 -Werror $(CPU_OPTS)
 #CFLAGS=-Wall -g -O2 -Wundef -Wshadow -Wsign-compare -I.
-CFLAGS=-Wall -g -I. -O2 -Werror
+CFLAGS=-Wall -g -I. -O2 -Werror $(shell dpkg-buildflags --get CFLAGS)
 
 # OLE decoding is still considered to be 'beta' mode - so it 
 #	disabled in the stable release of ripMIME for now
@@ -66,13 +66,14 @@
 	${CC} ${CFLAGS} ripmime.c ${OFILES} -o ripmime -lsocket
 
 ripmime: ${OFILES} ripmime.c buildcodes.h
-	${CC} ${CFLAGS} $(COMPONENTS) ripmime.c ${OFILES} -o ripmime ${LIBS}
+	${CC} ${CFLAGS} $(COMPONENTS) ripmime.c ${OFILES} -o ripmime ${LIBS} $(shell dpkg-buildflags --get LDFLAGS)
 
 riptest: ${OFILES}
 	${CC} ${CFLAGS} riptest.c ${OFILES} -o riptest
 
 install: ${OBJ}
-	strip ripmime
+#	strip ripmime
+# Not needed, let Debian deal with it.
 	cp ripmime debian/ripmime/usr/bin
 #	cp ripmime.1  ${LOCATION}/man/man1
 # Not needed, Debian will install man page.
--- a/ripOLE/Makefile
+++ b/ripOLE/Makefile
@@ -1,6 +1,6 @@
 
 OBJS= ole.o olestream-unwrap.o bytedecoders.o logger.o pldstr.o bt-int.o
-CFLAGS=-Wall -g -O2 -I. -Werror
+CFLAGS=-Wall -g -O2 -I. -Werror $(shell dpkg-buildflags --get CFLAGS)
 
 
 .c.o:
--- a/tnef/Makefile
+++ b/tnef/Makefile
@@ -5,7 +5,7 @@
 # default is big endian.  You can do -D__TNEF_BYTE_ORDER 1234 for little
 # endian
 PLATFORM=-D___TNEF_BYTE_ORDER=4321 
-CFLAGS=-Wall -g -O2 -I.
+CFLAGS=-Wall -g -O2 -I. $(shell dpkg-buildflags --get CFLAGS)
 
 default: config.h tnef.h tnef.c
 	$(CC) $(CFLAGS) $(PLATFORM) -c tnef.c
