Skip to content

Commit

Permalink
optimization flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Dascalu committed Sep 5, 2018
1 parent 52a31ea commit 0edf126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ include_directories(${CMAKE_SOURCE_DIR}/src)

set (CMAKE_VERBOSE_MAKEFILE ON)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fstack-protector-strong \
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} \
-O3 -DNDEBUG -fPIC -fstack-protector-strong \
-Wformat -Wformat-security -D_FORTIFY_SOURCE=2 \
-ffat-lto-objects -fuse-linker-plugin -flto \
-fuse-ld=gold -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed \
Expand Down

0 comments on commit 0edf126

Please sign in to comment.