chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fad73e0
)
cope with gcc which does not support -Wno-pointer-sign
author
ian
<ian>
Sun, 22 Jan 2006 15:59:25 +0000
(15:59 +0000)
committer
ian
<ian>
Sun, 22 Jan 2006 15:59:25 +0000
(15:59 +0000)
base/common.make
patch
|
blob
|
history
diff --git
a/base/common.make
b/base/common.make
index 2ebd133a18031bb1836772910079b04b7fc26380..1a42772f756252f768a2394fbc2bc41d229a48b8 100644
(file)
--- 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
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 \
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
- -Wno-pointer-sign \
$(OPTIMISE)
CPPFLAGS += -I$(BASE_DIR)
CPPFLAGS += $(TCL_MEM_DEBUG)
$(OPTIMISE)
CPPFLAGS += -I$(BASE_DIR)
CPPFLAGS += $(TCL_MEM_DEBUG)