fs/tar: make --no-recursion effective
[buildroot-gz.git] / package / cppdb / 0001-mysql-library-suffix.patch
blobe65e3e26b6224f5df4cc8362ed55f9b3f7186e38
1 Add mysql/ to PATH_SUFFIXES for the library search for mysql.
3 On common distros libmysqlclient* is installed and/or symlinked
4 into /usr/lib.
5 Since we install the libraries into /usr/lib/mysql alone cppdb
6 fails to properly link to it giving runtime errors.
8 Status: https://sourceforge.net/p/cppcms/bugs/135/
10 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
12 diff -Nura cppdb-0.3.1.orig/CMakeLists.txt cppdb-0.3.1/CMakeLists.txt
13 --- cppdb-0.3.1.orig/CMakeLists.txt 2014-10-17 11:05:57.875429748 -0300
14 +++ cppdb-0.3.1/CMakeLists.txt 2014-10-17 11:12:57.486775484 -0300
15 @@ -196,7 +196,7 @@
16 endif()
18 if(NOT DISABLE_MYSQL)
19 - find_library(MYSQL_LIB mysqlclient)
20 + find_library(MYSQL_LIB mysqlclient PATH_SUFFIXES mysql)
21 find_path(MYSQL_PATH mysql.h PATH_SUFFIXES mysql)
22 if(MYSQL_LIB AND MYSQL_PATH)
23 include_directories(${MYSQL_PATH})