$OpenBSD: patch-src_Makefile,v 1.2 2008/10/30 13:45:19 sthen Exp $
--- src/Makefile.orig	Sun May 11 17:11:54 2008
+++ src/Makefile	Mon May 12 10:15:57 2008
@@ -22,9 +22,9 @@ all: smsd 
 
 smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o
 ifneq (,$(findstring NOSTATS,$(CFLAGS)))
-	  $(CC) $(CFLAGS) -o $@ $^
+	  $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^
 else 
-	  $(CC) `mm-config --cflags` $(CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
+	  $(CC) `mm-config --cflags` $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^ `mm-config --ldflags --libs`
 	@echo "(Please ignore warning about tempnam -- it is used in a safe way)"
 endif
 
