mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Fix Data/MySQL #include <mysql.h> issue for all build systems on all platforms execpt MacOS Darwin.
Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
This commit is contained in:
@@ -4,24 +4,15 @@
|
||||
# Makefile fragment for finding MySQL library
|
||||
#
|
||||
|
||||
|
||||
# Note: linking order is important, do not change it.
|
||||
|
||||
ifndef POCO_MYSQL_INCLUDE
|
||||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = /usr/local/include
|
||||
else
|
||||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include
|
||||
endif
|
||||
endif
|
||||
POCO_MYSQL_INCLUDE= -I./../include -I/usr/local/include/mysql -I/usr/include/mysql/ -I/usr/mysql/include/mysql -I/usr/local/mysql/include
|
||||
endif
|
||||
|
||||
ifndef POCO_MYSQL_LIB
|
||||
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
|
||||
POCO_MYSQL_LIB = /usr/local/lib
|
||||
else
|
||||
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/lib; echo $$?))
|
||||
POCO_MYSQL_LIB = /usr/local/opt/mysql-client/lib
|
||||
endif
|
||||
endif
|
||||
POCO_MYSQL_LIB= -L/usr/local/lib -L/usr/local/lib$(LIB64SUFFIX)/mysql -L/usr/lib$(LIB64SUFFIX)/mysql -L/usr/mysql/lib$(LIB64SUFFIX) -L/usr/mysql/lib$(LIB64SUFFIX)/mysql -L/usr/local/mysql/lib$(LIB64SUFFIX)
|
||||
endif
|
||||
|
||||
ifdef POCO_MYSQL_INCLUDE
|
||||
@@ -30,3 +21,6 @@ endif
|
||||
ifdef POCO_MYSQL_LIB
|
||||
SYSLIBS += -L$(POCO_MYSQL_LIB)
|
||||
endif
|
||||
|
||||
# Note: linking order is important, do not change it.
|
||||
SYSLIBS += -lmysqlclient -lz -lpthread -ldl
|
||||
|
Reference in New Issue
Block a user