Merge pull request #1755 from Gymnasiast/linux-optimisations

Enable optimisations in Linux build
This commit is contained in:
Ted John 2015-08-10 12:32:47 +01:00
commit 6f166a7b11
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ SET(PKG_CONFIG_EXECUTABLE ${COMPILER_PREFIX}-pkg-config)
set(CMAKE_C_FLAGS "-masm=intel -std=gnu99 -fpack-struct=1" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-masm=intel -std=c++0x -std=gnu++0x -fpack-struct=1" CACHE STRING "" FORCE)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_SHARED_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static -lpthread" CACHE STRING "" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS "-O3 -static-libgcc -static-libstdc++ -static -lpthread" CACHE STRING "" FORCE)
else()
set(CMAKE_SHARED_LINKER_FLAGS "-static-libgcc -static-libstdc++" CACHE STRING "" FORCE)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")