From 4048a07229fc2d3cc91653087fbfd71965f8f8c1 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:57:48 +0800 Subject: [PATCH] feat only static gcc --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 569ea69..4635be6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,8 +20,8 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_POSITION_INDEPENDENT_CODE ON) # add static libgcc and libstdc++ for static linking -# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc -static-libstdc++") -# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc") option(TILE_BUILD_TESTS "Build tests" ON) option(TILE_BUILD_BENCHMARKS "Build tests" ON)