mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 16:02:29 +02:00
fix include/lib paths for Apple Silicon
This commit is contained in:
@@ -4,20 +4,37 @@
|
||||
# Makefile fragment for finding MySQL library
|
||||
#
|
||||
|
||||
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
|
||||
else
|
||||
ifeq (0, $(shell test -d /opt/homebrew/opt/mysql-client/include; echo $$?))
|
||||
POCO_MYSQL_INCLUDE = /opt/homebrew/opt/mysql-client/include
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Note: linking order is important, do not change it.
|
||||
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
|
||||
else
|
||||
ifeq (0, $(shell test -d /opt/homebrew/opt/mysql-client/lib; echo $$?))
|
||||
POCO_MYSQL_LIB = /opt/homebrew/opt/mysql-client/lib
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef POCO_MYSQL_INCLUDE
|
||||
INCLUDE += -I$(POCO_MYSQL_INCLUDE)
|
||||
else
|
||||
INCLUDE += -I./../include -I/usr/local/include/mysql -I/usr/include/mysql/ -I/usr/mysql/include/mysql -I/usr/local/mysql/include -I/usr/local/opt/mysql-client/include -I/usr/local/opt/mysql-client/include/mysql
|
||||
endif
|
||||
|
||||
ifdef POCO_MYSQL_LIB
|
||||
SYSLIBS += -L$(POCO_MYSQL_LIB)
|
||||
else
|
||||
SYSLIBS += -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) -L/usr/local/opt/mysql-client/lib
|
||||
endif
|
||||
|
||||
# Note: linking order is important, do not change it.
|
||||
SYSLIBS += -lmysqlclient -lz -lpthread -ldl
|
||||
|
Reference in New Issue
Block a user