From 0a742c594da07ced22c329b5be28202b414c2da8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 1 Nov 2010 16:25:09 +0000 Subject: [PATCH] Added missing cc-option definition. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2562 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iscsi-scst/kernel/Makefile b/iscsi-scst/kernel/Makefile index 839764265..c68afabce 100644 --- a/iscsi-scst/kernel/Makefile +++ b/iscsi-scst/kernel/Makefile @@ -20,6 +20,9 @@ # # Note 2! The CFLAGS definitions are now in the main makefile. +cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ + > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) + EXTRA_CFLAGS += -I$(src)/../include -I$(SCST_INC_DIR) EXTRA_CFLAGS += -Wextra $(call cc-option,-Wno-old-style-declaration) \ -Wno-unused-parameter -Wno-missing-field-initializers