Add -O3 to all C/C++ compiles.

So far, we are compiling C/C++ code without any optimization.

In non-representative, but practically relevant tests, the -O3
improved the total query time for a demanding graph by ~20%.

Change-Id: I5e8123650e53a4933ed4fbe63d0b1ca67217b865
This commit is contained in:
Bjoern Rabenstein 2014-02-13 12:37:43 +01:00
parent 18d9d00100
commit 1f90abdc1f

View file

@ -58,9 +58,9 @@ export LOCAL_BINARIES=$(PREFIX)/bin
export PATH := $(LOCAL_BINARIES):$(GOPATH)/bin:$(PATH)
export LD_LIBRARY_PATH := $(PREFIX)/lib:$(LD_LIBRARY_PATH)
export CFLAGS := $(CFLAGS) -I$(PREFIX)/include
export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include
export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include
export CFLAGS := $(CFLAGS) -I$(PREFIX)/include -O3
export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include -O3
export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include -O3
export LDFLAGS := $(LDFLAGS) -L$(PREFIX)/lib
export PKG_CONFIG_PATH := $(PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)