summaryrefslogtreecommitdiff
path: root/configure.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.0' into 10.1Sergei Golubchik2016-12-111-1/+0
|\
| * Merge branch '5.5' into 10.0Sergei Golubchik2016-12-091-1/+0
| |\
| | * MDEV-10293 'setupterm' was not declared in this scopeSergei Golubchik2016-12-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for readline before checking for curses headers, because MYSQL_CHECK_READLINE fails when curses is not found, but CHECK_INCLUDE_FILES simply remembers the fact and continues. So if there's no curses, MYSQL_CHECK_READLINE will abort, the user will then installs curses and continue the build. Thus, CHECK_INCLUDE_HEADERS will remember that there is no curses, but other checks from MYSQL_CHECK_READLINE will remember that curses are there. It will result in inconsistent HAVE_xxx defines.
* | | Cross Compile HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE change to compile checkDaniel Black2016-07-011-1/+1
| | | | | | | | | | | | | | | | | | HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE only needed a compile check rather than a RUN check so after changing to a compile check there is one less variable to manually set while cross compiling.
* | | MDEV-8684: Use POWER wrappers rather than direct asmDaniel Black2016-04-011-2/+3
| | | | | | | | | | | | i.e. __ppc_set_ppr_low rather than 'or 1,1,1'
* | | Some POWER specific optimizationsYasufumi Kinoshita2016-03-311-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#18842925 : SET THREAD PRIORITY IN INNODB MUTEX SPINLOOP Like "pause" instruction for hyper-threading at Intel CPUs, POWER has special instructions only for hinting priority of hardware-threads. Approved by Sunny in rb#6256 Backport of the 5.7 fix - https://github.com/mysql/mysql-server/commit/c92102a6ef0f280bfb56e5585fca0d0cdcc34890 (excluded cache line size patch) Suggestion by Stewart Smith
* | | Merge branch '10.0' into 10.1Sergei Golubchik2016-02-231-3/+23
|\ \ \ | |/ /
| * | Merge branch '5.5' into 10.0Sergei Golubchik2016-02-151-3/+23
| |\ \ | | |/
| | * better inline checkSergei Golubchik2016-02-151-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. check that unused inline functions are removed 2. only allow compilation if they are or if the check if overridden 3. with CMAKE_GENERATOR=Makefiles, use all flags when testing (e.g. both CMAKE_C_FLAGS and CMAKE_C_FLAGS_DEBUG if CMAKE_BUILD_TYPE=Debug). This is because - on Solaris with the SunPro compiler, default CMAKE_C_FLAGS_xxx values contain -xO2 (for Release and RelWithDebInfo) and -g (for RelWithDebInfo and Debug) - proper inlining only works at -xO4 without -g - so if CMAKE_C_FLAGS has -xO4, inlining would work in configure.cmake (before this fix) and fail during actual compilation also remove the outdated check for inline from myu_global.h
| | * MDEV-9024 Build fails with VS2015Sergei Golubchik2016-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cherry-pick f1daf9ce from 10.0 branch ------------------------------------- Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
* | | Fixes needed to compile with musl C libraryMonty2016-02-071-0/+1
| | | | | | | | | | | | Patch originally by Codarren Velvindron
* | | Merge branch '10.0' into 10.1Monty2016-02-021-1/+0
|\ \ \ | |/ / | | | | | | | | | Conflicts: configure.cmake
| * | Merge MDEV-9112 into 10.0Kristian Nielsen2016-02-011-0/+3
| |\ \ | | |/ | | | | | | | | | Conflicts: configure.cmake
* | | Merge MDEV-9112 into 10.1Kristian Nielsen2016-02-011-0/+3
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: config.h.cmake configure.cmake
| * | MDEV-9112: Non-blocking client API missing on non-x86 platformsGeorg Richter2016-02-011-0/+3
| | | | | | | | | | | | | | | | | | | | | The check for UCONTEXT in cmake was somehow become broken, disabling the fallback to ucontext. This caused the non-blocking client API to not be available for non-x86 platforms, on which no hand-crafted assembler implementation of my_context is available.
* | | Merge branch '10.0' into 10.1Sergei Golubchik2015-12-211-0/+1
|\ \ \ | | |/ | |/|
| * | Fixed failing test cases and compiler warnings found by buildbotMonty2015-11-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Added some extra command to rpl_start_stop to ensure that the IO thread has connected to the master before we shut down the server. - if signal returns signalhandler_t, use this with the alarm code - Added missing tests to sys_vars - Fixed some possible overflow bugs in tabxml.cpp
* | | Merge branch '10.0' into 10.1Sergei Golubchik2015-11-191-0/+3
|\ \ \ | |/ /
| * | MDEV-9024 Build fails with VS2015Vladislav Vaintroub2015-11-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix build failures caused by new C runtime library - isnan, snprintf, struct timespec are now defined, attempt to redefine them leads - P_tmpdir, tzname are no more defined - lfind() and lsearch() in lf_hash.c had to be renamed, declaration conflicts with some C runtime functions with the same name declared in a header included by stdlib.h Also fix couple of annoying warnings : - remove #define NOMINMAX from config.h to avoid "redefined" compiler warnings(NOMINMAX is already in compile flags) - disable incremental linker in Debug as well (feature not used much and compiler crashes often) Also simplify package building with Wix, require Wix 3.9 or later (VS2015 is not compatible with old Wix 3.5/3.6)
* | | dbug: correct trace for DBUG_RETURN(func()); -- gcc onlySergei Golubchik2015-11-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when func1 calls func2 from DBUG_RETURN, dbug shows the trace as | > func1 | < func1 | > func2 | < func2 because DBUG_LEAVE happens before func2(). Change that to invoke DBUG_LEAVE when the local variable goes out of scope. This uses gcc specific __attribute__((cleanup)).
* | | MDEV-8901: InnoDB: Punch hole is incorrecty done also to log files causing ↵Jan Lindström2015-10-061-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertion and database corruption Analysis: Problem is that punch hole does not know the actual page size of the page and does the page belong to an data file or to a log file. Fix: Pass down the file type and page size to os layer to be used when trim is called. Also fix unsafe null pointer access to actual write_size.
* | | MDEV-6756: map a linux pid (child pid) to a connection id shown in the ↵Oleksandr Byelkin2015-09-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | output of SHOW PROCESSLIST Added tid (thread ID) for system where it is present. ps -eL -o tid,pid,command shows the thread on Linux
* | | cmake: always use the same function to test for compiler flagsSergei Golubchik2015-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | Fix all cmake tests (including plugin) to use MY_CHECK_AND_SET_COMPILER_FLAG. And fix that function to be compatible with cmake 3.0. This way flag checks are correctly cached (even in cmake 3.0) and properly reused.
* | | Merge branch '10.0-galera' into 10.1Nirbhay Choubey2015-07-141-0/+1
| | |
* | | Merge tag 'mariadb-10.0.20' into 10.1Sergei Golubchik2015-06-271-5/+10
|\ \ \ | |/ /
| * | MDEV-7398 mysqld segfaults on FreeBSD 10.1 i386 when built with clang 3.4Sergei Golubchik2015-06-161-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in cmake tests let's treat clang like gcc (same options, same builtins) in many cases. * don't check the compiler when * testing for -fvisibility=hidden support * testing for HAVE_ABI_CXA_DEMANGLE * testing for HAVE_GCC_ATOMIC_BUILTINS * when removing options with string(replace) * when running ${CC} --version (ignore the error instead) * run ABI checks for clang * use "canonical" gcc flags for clang * fix groonga too Also: * add cmake detection for gcc __atomic_* builtins. they might be supported (__ATOMIC_SEQ_CST is defined), but not for all operand sizes. In particular, 64-bit atomic load is problematic on i386 * cache check results for Windows * remove the test for HAVE_CXXABI_H (HAVE_ABI_CXA_DEMANGLE is suffifient)
* | | MDEV-6479 stack traces in 10.1Sergei Golubchik2015-02-281-0/+1
| | | | | | | | | | | | | | | | | | Take into account that PIE binaries are loaded at some offset, so addresses cannot be directly resolved with addr2line. Find this offset and subtract it before resolving an address.
* | | Merge branch '10.0' into merge-wipSergei Golubchik2015-01-311-10/+0
|\ \ \ | |/ /
| * | 5.5 mergeSergei Golubchik2015-01-211-10/+0
| |\ \ | | |/
| | * mysql-5.5.41 mergeSergei Golubchik2014-12-191-9/+0
| | |\
| | | * Bug#17633291: SET PROPER COMPILE OPTIONS FOR CLANGJon Olav Hauglid2014-10-131-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#17959689: MAKE GCC AND CLANG GIVE CONSISTENT COMPILATION WARNINGS Bug#18313717: ENABLE -WERROR IN MAINTANER MODE WHEN COMPILING WITH CLANG Bug#18510941: REMOVE CMAKE WORKAROUNDS FOR OLDER VERSIONS OF OS X/XCODE Backport from mysql-5.6 to mysql-5.5
* | | | MDEV-7437 remove suport for "atomics" with rwlocksSergei Golubchik2015-01-131-8/+2
| | | |
* | | | Fix compiler failure on fallocate function and used flags.Jan Lindström2014-12-031-0/+2
| | | |
* | | | MDEV-6648: InnoDB: Add support for 4K sector size if supportedJan Lindström2014-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | New generation hard drives, SSDs and NVM devices support 4K sector size. Supported sector size can be found using fstatvfs() or GetDiskFreeSpace() functions.
* | | | Merge 10.0.14 into 10.1Sergei Golubchik2014-10-151-5/+5
|\ \ \ \ | |/ / /
| * | | typos in cmake -DWITH_ATOMIC_OPS=xxxSergei Golubchik2014-09-071-5/+5
| | | |
* | | | portability: use getifaddrs()Sergei Golubchik2014-10-011-0/+1
| | | | | | | | | | | | | | | | instead of exec'ing /usr/sbin/ifconfig|grep|sed|awk
* | | | fix cmake detection of bfd.hSergei Golubchik2014-10-011-1/+2
| | | |
* | | | MDEV-6305 - UNINIT_VAR emits code in non-debug buildsSergey Vojtovich2014-08-261-1/+1
|/ / / | | | | | | | | | | | | Reverted workaround for gcc bug, which was fixed 3 years ago: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34772
* | | 10.0-base mergeSergei Golubchik2014-02-031-0/+4
|\ \ \
| * \ \ 5.5 mergeSergei Golubchik2014-02-011-0/+4
| |\ \ \ | | |/ /
| | * | MySQL-5.5.35 mergeSergei Golubchik2014-01-221-0/+4
| | |\ \ | | | |/
| | | * Bug#17296644 CONV(X, INT_MIN, INT_MIN) SEGFAULTS THE SERVERTor Didriksen2013-09-091-0/+4
| | | | | | | | | | | | | | | | | | | | Do not call abs(INT_MIN) as the result is undefined.
* | | | 10.0-base mergeSergei Golubchik2013-07-181-2/+3
|\ \ \ \ | |/ / /
| * | | 5.5 mergeSergei Golubchik2013-07-171-2/+3
| |\ \ \ | | |/ /
| | * | mysql-5.5.32 mergeSergei Golubchik2013-07-161-2/+2
| | |\ \ | | | |/
| | | * Bug#11766815 INVALID SYSTEM CHECK TIME_T_UNSIGNEDTor Didriksen2013-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for unsigned time_t failed, on all platforms, due to missing #include. from CMakeFiles/CMakeError.log with this patch: error: size of array array is negative without this patch: error: time_t undeclared (first use in this function)
| | * | MDEV-4601 : Allow MariaDB to be build without non-blocking client.Vladislav Vaintroub2013-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | Non-blocking client currently can be build on Windows, GCC on i386 and x64, or any OS wth ucontext.h header. Prior to this patch, build failed if neither of these conditions is true. Fix to avoid compiler errors in these case - non-blocking API would not be useful on , but otherwise everything will work as before.
* | | | 10.0-base mergeSergei Golubchik2013-06-061-1/+1
|\ \ \ \ | |/ / / | | | | | | | | (without InnoDB - all InnoDB changes were ignored)
| * | | 5.5 mergeSergei Golubchik2013-06-061-1/+1
| |\ \ \ | | |/ /