X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Fcommon.make;h=b736610bf3a99445fbc7fe8cd708abfe6cd40c15;hp=bc86488cd67df6a49c64308fc22b7bcb3daef4b3;hb=f63331266eb17877332738f80f622c94e924c118;hpb=86161db08f15e223ff453f08436724ff1fedd88d diff --git a/base/common.make b/base/common.make index bc86488..b736610 100644 --- a/base/common.make +++ b/base/common.make @@ -29,16 +29,17 @@ TCMDIFGEN ?= $(BASE_DIR)/tcmdifgen BASE_TCT ?= $(BASE_DIR)/base.tct BASE_SHLIB ?= lib$(FAMILY)-$(VERSION) +CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ + $(OPTIMISE) + ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),) CFLAGS += -Wno-pointer-sign endif -ifeq ($(shell $(CC) -Wno-strict-alias -E -x c /dev/null >/dev/null || echo x),) -CFLAGS += -Wno-strict-alias +ifeq ($(shell $(CC) -fno-strict-aliasing -E -x c /dev/null >/dev/null || echo x),) +CFLAGS += -fno-strict-aliasing endif -CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ - $(OPTIMISE) CPPFLAGS += -I$(TCL_INCLUDEDIR) -I$(BASE_DIR) CPPFLAGS += $(TCL_MEM_DEBUG)