From c48252ff1a8cfbd77e1be9717dbcb957bbcf57a8 Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 22 Jan 2006 15:59:25 +0000 Subject: [PATCH] cope with gcc which does not support -Wno-pointer-sign --- base/common.make | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/common.make b/base/common.make index 2ebd133..1a42772 100644 --- a/base/common.make +++ b/base/common.make @@ -4,8 +4,11 @@ TCL_MEM_DEBUG ?= -DTCL_MEM_DEBUG TCMDIFGEN ?= $(BASE_DIR)/tcmdifgen BASE_TCT ?= $(BASE_DIR)/base.tct +ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),) +CFLAGS += -Wno-pointer-sign +endif + CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ - -Wno-pointer-sign \ $(OPTIMISE) CPPFLAGS += -I$(BASE_DIR) CPPFLAGS += $(TCL_MEM_DEBUG) -- 2.30.2