blob: 720f3d7cbf63c4ada5fd7b15ff0e440147dd43e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Author: Nicholas Bamber <nicholas@periapt.co.uk>
Bug: http://bugs.mysql.com/bug.php?id=64386
Debian-Bug: http://bugs.debian.org/660686
Subject: versioned symbols got dropped from the build
Last-Update: 2012-06-01
--- a/libmysql/CMakeLists.txt
+++ b/libmysql/CMakeLists.txt
@@ -136,6 +136,8 @@
)
+CONFIGURE_FILE(libmysql.ver.in ${CMAKE_BINARY_DIR}/libmysql/libmysql.ver)
+
SET(CLIENT_SOURCES
get_password.c
libmysql.c
@@ -209,7 +211,7 @@
SET(libmysql_link_flags)
ENDIF()
SET_TARGET_PROPERTIES(libmysql PROPERTIES LINK_FLAGS
- "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED}")
+ "${libmysql_link_flags} ${LINK_FLAG_NO_UNDEFINED} -Wl,--version-script=libmysql.ver")
ENDIF()
# clean direct output needs to be set several targets have the same name
#(mysqlclient in this case)
|