Mercurial > hg > truffle
comparison make/linux/makefiles/gcc.make @ 2184:5d801e6b9a80
Imported build system changes from other repository.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:17:10 +0100 |
parents | a5610f0862fe |
children | 7e88bdae86ec |
comparison
equal
deleted
inserted
replaced
2183:eed52202caea | 2184:5d801e6b9a80 |
---|---|
73 CFLAGS += $(VM_PICFLAG) | 73 CFLAGS += $(VM_PICFLAG) |
74 CFLAGS += -fno-rtti | 74 CFLAGS += -fno-rtti |
75 CFLAGS += -fno-exceptions | 75 CFLAGS += -fno-exceptions |
76 CFLAGS += -D_REENTRANT | 76 CFLAGS += -D_REENTRANT |
77 CFLAGS += -fcheck-new | 77 CFLAGS += -fcheck-new |
78 # version 4 and above support fvisibility=hidden (matches jni_x86.h file) | |
79 # except 4.1.2 gives pointless warnings that can't be disabled (afaik) | |
80 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" | |
81 CFLAGS += -fvisibility=hidden | |
82 endif | |
78 | 83 |
79 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH)) | 84 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH)) |
80 ARCHFLAG/i486 = -m32 -march=i586 | 85 ARCHFLAG/i486 = -m32 -march=i586 |
81 ARCHFLAG/amd64 = -m64 | 86 ARCHFLAG/amd64 = -m64 |
82 ARCHFLAG/ia64 = | 87 ARCHFLAG/ia64 = |