- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
This helps with remembering additional flags like e.g. cpu settings for
people who did not configured their compiler to produce code for their cpu
per default.
diff --git a/Makefile.flags b/Makefile.flags
index e314802..ad8d5e1 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -81,6 +81,11 @@
CFLAGS += $(ARCH_FPIE)
endif
+ifneq ($(CONFIG_EXTRA_CFLAGS),)
+CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
+#"))
+endif
+
LDLIBS += m crypt
ifeq ($(CONFIG_PAM),y)