Skip to content
Snippets Groups Projects
Commit 9b875a83 authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

libgcc compiler check fix.

parent e5f43bf8
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ endif()
# usable on a system which has only gcc 4.1, statically link with
# builtin libgcc by default.
#
if (CMAKE_COMPILER_IS_GNUCC and not CMAKE_COMPILER_IS_CLANG)
if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG)
add_compile_flags("C;CXX;OBJC;OBJCXX" "-static-libgcc")
endif()
......
......@@ -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 (CMAKE_COMPILER_IS_GNUCC and not CMAKE_COMPILER_IS_CLANG)
if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG)
set (tnt_cflags "${tnt_cflags} -static-libgcc")
endif()
......
......@@ -38,7 +38,9 @@ set (tntnet_sources
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG)
set (tnt_cflags "${tnt_cflags} -static-libgcc")
endif()
#
# Static library
......
......@@ -35,7 +35,9 @@ set (tntrpl_sources tnt_log.c tnt_dir.c tnt_xlog.c tnt_snapshot.c tnt_rpl.c
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG)
set (tnt_cflags "${tnt_cflags} -static-libgcc")
endif()
#
# Static library
......
......@@ -37,7 +37,9 @@ set (tntsql_sources
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
if (CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG)
set (tnt_cflags "${tnt_cflags} -static-libgcc")
endif()
#
# Static library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment