From 89ad12e228cc23365d20715999618e5306c653d8 Mon Sep 17 00:00:00 2001 From: Konstantin Osipov <kostja@tarantool.org> Date: Wed, 10 Apr 2013 19:29:27 +0400 Subject: [PATCH] Clear -static-libgcc from one more place. --- connector/c/tnt/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/c/tnt/CMakeLists.txt b/connector/c/tnt/CMakeLists.txt index a343915f1d..cdae7dee71 100644 --- a/connector/c/tnt/CMakeLists.txt +++ b/connector/c/tnt/CMakeLists.txt @@ -47,7 +47,7 @@ set (tnt_sources string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") -if (NOT TARGET_OS_DARWIN) +if (CMAKE_COMPILER_IS_GNUCC and not CMAKE_COMPILER_IS_CLANG) set (tnt_cflags "${tnt_cflags} -static-libgcc") endif() -- GitLab