build tokudb on linux 32 with -march=i686 refs[t:2087]

git-svn-id: file:///svn/toku/tokudb@15156 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:58:04 -04:00 committed by Yoni Fogel
parent 6822031243
commit a8d53f5897

View file

@ -65,6 +65,7 @@ OPT_OPTFLAGS = -O3 -finline-functions
DBG_OPTFLAGS = -O0
SYSTEM = $(shell uname -s | tr [:upper:] [:lower:])
ARCH = $(shell uname -m | tr [:upper:] [:lower:])
ifeq ($(VERBOSE),2)
VERBVERBOSE=-v
@ -231,6 +232,12 @@ ifeq ($(CC),icc)
SKIP_WARNING += $(ICC_NOWARN)1324 # Don't complain about rdtsc clobbering its registers more than once.
endif
ifneq ($(CC),icc)
ifeq ($(ARCH),i686)
ARCHFLAGS = -march=$(ARCH)
endif
endif
ifneq ($(CYGWIN),)
#Cygwin (Windows) Must override some settings
BINSUF=.exe
@ -301,7 +308,7 @@ else
ARFLAGS = $(DBG_ARFLAGS)
endif
CFLAGS = $(WALL) $(W64) $(WERROR) $(FORMAT) $(VISIBILITY) $(FPICFLAGS) $(SHADOW)
CFLAGS = $(WALL) $(W64) $(WERROR) $(FORMAT) $(VISIBILITY) $(FPICFLAGS) $(SHADOW) $(ARCHFLAGS)
CFLAGS += $(OPTFLAGS) $(GCOV_FLAGS) $(PROF_FLAGS)
CFLAGS += $(SYMBOLS) $(SKIP_WARNING) $(C99) $(CCQUIET)