Change to -static gcc flag

This commit is contained in:
Zachary Michaels 2014-08-06 12:45:47 -04:00 committed by Riccardo Spagni
parent 44f920b0fd
commit f9f4fc1b00
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -136,7 +136,7 @@ else()
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}")
if(STATIC AND NOT APPLE AND NOT FREEBSD)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
endif()
endif()