X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Fcommon.make;h=b0d4bae8bc4e251b21dc6093f437726d58dd8bdf;hp=6e3852a88ea180a4a6e063400dda7c31bf162305;hb=382dc154ad04e75c16d062af9e4ab49a82330ba0;hpb=c1d91496221c3816863d258fc79660615e2e884a diff --git a/base/common.make b/base/common.make index 6e3852a..b0d4bae 100644 --- a/base/common.make +++ b/base/common.make @@ -1,5 +1,5 @@ # base code for various Tcl extensions -# Copyright 2006 Ian Jackson +# Copyright 2006-2012 Ian Jackson # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -12,14 +12,12 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this library; if not, see . VERSION ?= 1 FAMILY ?= chiark_tcl -TCL_VERSION ?= 8.3 +TCL_VERSION ?= 8.4 TCL_INCLUDEDIR ?= /usr/include/tcl$(TCL_VERSION) OPTIMISE ?= -O2 @@ -29,12 +27,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 -CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ - $(OPTIMISE) +ifeq ($(shell $(CC) -fno-strict-aliasing -E -x c /dev/null >/dev/null || echo x),) +CFLAGS += -fno-strict-aliasing +endif + CPPFLAGS += -I$(TCL_INCLUDEDIR) -I$(BASE_DIR) CPPFLAGS += $(TCL_MEM_DEBUG)