Skip to content

Commit

Permalink
Fix for CONC-133:
Browse files Browse the repository at this point in the history
Allow to build connector/c with older (outdated) gcc compilers.
This was fixed in C/C 3.0.x already
  • Loading branch information
9EOR9 committed Feb 20, 2018
1 parent f99dcfb commit 2bd29c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libmariadb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,14 @@ my_stmt_codec.c
client_plugin.c
my_auth.c
)

# some gcc versions fail to compile asm parts of my_context.c,
# if build type is "Release" (see CONC-133), so we need to add -g flag
IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_BUILD_TYPE MATCHES "Release")
SET_SOURCE_FILES_PROPERTIES(my_context.c PROPERTIES COMPILE_FLAGS -g)
ENDIF()


IF(WITH_OPENSSL)
SET(LIBMARIADB_SOURCES ${LIBMARIADB_SOURCES} ma_secure.c)
ENDIF()
Expand Down

0 comments on commit 2bd29c2

Please sign in to comment.