some better OS_CFLAGS for Linux
authorshaver@mozilla.org
Thu, 10 Jul 2008 21:38:47 -0400
changeset 17599 c43277de083c7473dfbb32806a31e152aa8b1dc5
parent 17598 16e78256f19320365c5cd52a79b17b2d2f621296
child 17600 75f3b00302ed7e0d9e05e6bf197f75c1523192eb
push id1452
push usershaver@mozilla.com
push dateFri, 22 Aug 2008 00:08:22 +0000
treeherdermozilla-central@d13bb0868596 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1a1pre
some better OS_CFLAGS for Linux
js/src/config/Linux_All.mk
--- a/js/src/config/Linux_All.mk
+++ b/js/src/config/Linux_All.mk
@@ -38,32 +38,31 @@
 # ***** END LICENSE BLOCK *****
 
 #
 # Config for all versions of Linux
 #
 
 CC = gcc
 CCC = g++
-CFLAGS +=  -Wall -Wno-format -MMD -DLINUX
-OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
+CFLAGS +=  -Wall -Wno-format -MMD
+OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DLINUX
 
 RANLIB = echo
 MKSHLIB = $(LD) -shared $(XMKSHLIBOPTS)
 
 #.c.o:
 #      $(CC) -c -MD $*.d $(CFLAGS) $<
 
 CPU_ARCH = $(shell uname -m)
 # don't filter in x86-64 architecture
 ifneq (x86_64,$(CPU_ARCH))
 ifeq (86,$(findstring 86,$(CPU_ARCH)))
 CPU_ARCH = x86
-OS_CFLAGS+= -DX86_LINUX
-OS_CFLAGS += -DAVMPLUS_IA32
+OS_CFLAGS += -DX86_LINUX -DAVMPLUS_IA32 -DAVMPLUS_LINUX
 NANOJIT_ARCH = i386
 
 ifeq (gcc, $(CC))
 # if using gcc on x86, check version for opt bug 
 # (http://bugzilla.mozilla.org/show_bug.cgi?id=24892)
 GCC_VERSION := $(shell gcc -v 2>&1 | grep version | awk '{ print $$3 }')
 GCC_LIST:=$(sort 2.91.66 $(GCC_VERSION) )