Commit 02ddac6f authored by Jonathan Perkin's avatar Jonathan Perkin

bug#58955: Must -DBUILD_CONFIG=mysql_release require libaio on Linux

Allow users to build without aio if they really want to, by passing
-DIGNORE_AIO_CHECK to cmake.
parent 70d652d0
...@@ -118,17 +118,21 @@ IF(UNIX) ...@@ -118,17 +118,21 @@ IF(UNIX)
OPTION(WITH_PIC "" ON) # Why? OPTION(WITH_PIC "" ON) # Why?
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Ensure aio is available on Linux (required by InnoDB) IF(NOT IGNORE_AIO_CHECK)
CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H) # Ensure aio is available on Linux (required by InnoDB)
CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO) CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H)
IF(NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO) CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO)
MESSAGE(FATAL_ERROR " IF(NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO)
aio is required on Linux, you need to install the required library: MESSAGE(FATAL_ERROR "
aio is required on Linux, you need to install the required library:
Debian/Ubuntu: apt-get install libaio-dev
RedHat/Fedora/Oracle Linux: yum install libaio-devel Debian/Ubuntu: apt-get install libaio-dev
SuSE: zypper install libaio-devel RedHat/Fedora/Oracle Linux: yum install libaio-devel
") SuSE: zypper install libaio-devel
If you really do not want it, pass -DIGNORE_AIO_CHECK to cmake.
")
ENDIF()
ENDIF() ENDIF()
# Enable fast mutexes on Linux # Enable fast mutexes on Linux
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment