• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/cppdb/0001-mysql-library-suffix.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
Add mysql/ to PATH_SUFFIXES for the library search for mysql.
2
​
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.
7
​
8
Status: https://sourceforge.net/p/cppcms/bugs/135/
9
​
10
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11
​
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()
17
 
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})
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.