Bug #67897 | Fast mutex is not enabled without -DCMAKE_BUILD_TYPE=RelWithDebInfo | ||
---|---|---|---|
Submitted: | 13 Dec 2012 15:32 | Modified: | 15 Feb 2013 12:17 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.5+ | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[13 Dec 2012 15:32]
Mikiya Okuno
[14 Dec 2012 0:10]
Vladislav Vaintroub
This issue is understood backwards. mysql_config should *not* have any MY_PTHREAD_WHATEVER flags, it should have the necessary stuff to compile *other peoples* code that uses mysql client library. The less it exposes our own macro definitions the better. mysql_config should actually just spit out the libraries to link with, and I think that's it
[19 Dec 2012 4:19]
功平 須藤
This patch enables fast mutex with not only RelWithDebInfo CMAK_BUILD_TYPE but also all CMAKE_BUILD_TYPEs (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: mysql-5.5.27-fix-wrong-mysql_config-cflags-for-non-relwithdebinfo-build-type.diff (text/x-diff), 1.01 KiB.
[19 Dec 2012 4:23]
功平 須藤
This bug report cares about only CMake. mysql_config isn't cared on this bug report. If mysql_config has a problem, I think that we discuss about it on other bug report. I hope that this bug report cares about only "cmake does not handle compiler option for fastmutex correctly".
[15 Feb 2013 11:58]
Tor Didriksen
I agree with Vlad on this one. The proposed patch tries to change the generation of various scripts. Those scripts are not used when building MySQL.