diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-01-17 09:11:20 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-01-17 09:11:20 +0100 |
commit | 1433621c14e480dbedf3d7ea2b4885cff94bc6e5 (patch) | |
tree | 1c7e1a241c115c731fc91debcdc6fa714c931a7a /client/CMakeLists.txt | |
parent | 8b278b44154009168e4bf7b377f5b21159c5dfb4 (diff) | |
download | mariadb-git-1433621c14e480dbedf3d7ea2b4885cff94bc6e5.tar.gz |
fixes for non-debug builds (CMAKE_BUILD_TYPE=Release or RelWithDebInfo)
client/CMakeLists.txt:
1. -rdynamic is a linker flag.
2. it should be used in all builds, not debug only
libmysql/get_password.c:
prefer a standard function, when possible
(otherwise a plugin will need to load it from the client)
Diffstat (limited to 'client/CMakeLists.txt')
-rw-r--r-- | client/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index a5a73298122..de503e8927e 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -31,7 +31,7 @@ MYSQL_ADD_EXECUTABLE(mysql completion_hash.cc mysql.cc readline.cc TARGET_LINK_LIBRARIES(mysql mysqlclient) IF(UNIX) TARGET_LINK_LIBRARIES(mysql ${MY_READLINE_LIBRARY}) - SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -rdynamic") + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic") ENDIF(UNIX) MYSQL_ADD_EXECUTABLE(mysqltest mysqltest.cc COMPONENT Test) |