Skip to content
Snippets Groups Projects
Commit 7291d69d authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch 'warning-fix'

parents 9a155052 04f10bfa
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,9 @@ if (ENABLE_STATIC) ...@@ -184,6 +184,9 @@ if (ENABLE_STATIC)
add_compile_flags("C;CXX" "-static") add_compile_flags("C;CXX" "-static")
endif() endif()
# Compile with builtin libgcc by default.
add_compile_flags("C;CXX;OBJC;OBJCXX" "-static-libgcc")
## ##
## Third-Party libraries ## Third-Party libraries
## ##
......
...@@ -44,8 +44,11 @@ set (tnt_sources ...@@ -44,8 +44,11 @@ set (tnt_sources
# Here we manage to build static/dynamic libraries ourselves, # Here we manage to build static/dynamic libraries ourselves,
# do not use the top level settings. # do not use the top level settings.
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
# #
# Static library # Static library
# #
......
...@@ -35,8 +35,11 @@ set (tntnet_sources ...@@ -35,8 +35,11 @@ set (tntnet_sources
# Here we manage to build static/dynamic libraries ourselves, # Here we manage to build static/dynamic libraries ourselves,
# do not use the top level settings. # do not use the top level settings.
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
# #
# Static library # Static library
# #
......
...@@ -32,8 +32,11 @@ set (tntrpl_sources tnt_log.c tnt_dir.c tnt_xlog.c tnt_snapshot.c tnt_rpl.c ...@@ -32,8 +32,11 @@ set (tntrpl_sources tnt_log.c tnt_dir.c tnt_xlog.c tnt_snapshot.c tnt_rpl.c
# Here we manage to build static/dynamic libraries ourselves, # Here we manage to build static/dynamic libraries ourselves,
# do not use the top level settings. # do not use the top level settings.
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
# #
# Static library # Static library
# #
......
...@@ -34,8 +34,11 @@ set (tntsql_sources ...@@ -34,8 +34,11 @@ set (tntsql_sources
# Here we manage to build static/dynamic libraries ourselves, # Here we manage to build static/dynamic libraries ourselves,
# do not use the top level settings. # do not use the top level settings.
string(REPLACE "-static-libgcc" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") string(REPLACE "-static" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set (tnt_cflags "${tnt_cflags} -static-libgcc")
# #
# Static library # 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