Skip to content

Commit 170a7a1

Browse files
author
holzboote@googlemail.com
committed
Fix for CONC-90: Incorrect output for mariadb_config
- When linking against external zlib the linker options are - added missing space for CMAKE_C_FLAGS
1 parent ad05803 commit 170a7a1

File tree

3 files changed

+2
-479
lines changed

3 files changed

+2
-479
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ INCLUDE(cmake/SearchLibrary.cmake)
102102
IF(WITH_EXTERNAL_ZLIB)
103103
FIND_PACKAGE(ZLIB QUIET)
104104
IF(${ZLIB_FOUND})
105-
SET(LIBZ "-lz")
105+
SET(LIBZ "z")
106106
ENDIF()
107107
ENDIF()
108108

mariadb_config/mariadb_config.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define INCLUDE "-I@CMAKE_INSTALL_PREFIX@/include/mariadb"
77
#define LIBS "-L@CMAKE_INSTALL_PREFIX@/lib/mariadb -lmariadb" \
88
"@extra_dynamic_LDFLAGS@"
9-
#define CFLAGS INCLUDE "@CMAKE_C_FLAGS@"
9+
#define CFLAGS INCLUDE " @CMAKE_C_FLAGS@"
1010
#define VERSION "@MYSQL_CLIENT_VERSION@"
1111
#define SOCKET "@MYSQL_UNIX_ADDR@"
1212
#define PORT "@MYSQL_PORT@"

0 commit comments

Comments
 (0)