diff --git a/CMakeLists.txt b/CMakeLists.txt index cb2c46a..22a038d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,9 @@ add_compile_options( if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) add_compile_options(-mavx) endif() +if(CMAKE_SYSTEM_NAME STREQUAL Linux) + add_link_options(LINKER:--gc-sections) +endif() add_subdirectory(third_party)