diff --git a/CMakeLists.txt b/CMakeLists.txt index fab79a14a..7df6b8a0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,9 @@ else(WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags") set(GOARCH "GOARCH=386" CACHE STRING "go architecture") + add_compile_options( + -m32 + ) endif(BUILD_32BIT) endif(APPLE) endif(WIN32) diff --git a/Makefile b/Makefile index a42fd5b59..7b8787732 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ TIMESTAMP=$(shell date +"%Y%m%d%H%M") .PHONY: all all: setup - cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN) + cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN) VERBOSE=1 setup: mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release ${CMAKE_ARGS}