diff --git a/.gitignore b/.gitignore index 0972b5ae..4f8de9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,4 @@ cmake_install.cmake *.db *.opendb +.vscode \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index c66f18a5..6690fc8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,8 +170,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AN if(NANA_CMAKE_SHARED_LIB) list(APPEND NANA_LINKS -lgcc -lstdc++ -pthread) else() - set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -pthread") - # message("Setting NANA_LINKS to -static-libgcc -static-libstdc++ -pthread or ${NANA_LINKS}") + set(CMAKE_EXE_LINKER_FLAGS "-static -pthread") + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s") + # message("Setting NANA_LINKS to -static -pthread or ${NANA_LINKS}") endif(NANA_CMAKE_SHARED_LIB) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.3)