diff --git a/CMakeLists.txt b/CMakeLists.txt index a4288ece3..70d30ba05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,9 +239,12 @@ install_file(${CMAKE_SOURCE_DIR}/etc/logrotate.d/maxscale_logrotate core) install_header(${CMAKE_SOURCE_DIR}/COPYRIGHT devel) install_header(${CMAKE_SOURCE_DIR}/LICENSE.TXT devel) -# Install startup scripts and ldconfig files +# Install startup scripts and other system configuration files if(WITH_SCRIPTS) include(cmake/init_scripts.cmake) + + # Prevents prelink from corrupting maxctrl + install_custom_file(etc/prelink.conf.d/maxscale.conf /etc/prelink.conf.d/ core) endif() if(PACKAGE) diff --git a/etc/prelink.conf.d/maxscale.conf b/etc/prelink.conf.d/maxscale.conf new file mode 100644 index 000000000..ce85118c6 --- /dev/null +++ b/etc/prelink.conf.d/maxscale.conf @@ -0,0 +1 @@ +-b /usr/bin/maxctrl