--- a/Makefile
+++ b/Makefile
@@ -9,17 +9,18 @@
 #								opposite of a disclaimer.
 ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT
 #ALTERMIME_OPTIONS=
-CFLAGS=-Wall -Werror -g -I. -O2 $(ALTERMIME_OPTIONS)
+CFLAGS?=-Wall -Werror -g -I. -O2
+CFLAGS+=$(ALTERMIME_OPTIONS)
 OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o
 
 
 .c.o:
-	${CC} ${CFLAGS} -c $*.c
+	${CC} ${CFLAGS} ${LDFLAGS} -c $*.c
 
 all: altermime
 
 altermime: altermime.c ${OBJS}
-	${CC} ${CFLAGS} altermime.c ${OBJS} -o altermime
+	${CC} ${CFLAGS} ${LDFLAGS} altermime.c ${OBJS} -o altermime
 
 
 # Build Install
