fix MySQL.make

This commit is contained in:
Günter Obiltschnig 2023-10-04 06:30:58 +02:00
parent 64ccf120f8
commit 1a4c6e10a6

View File

@ -22,16 +22,16 @@ ifneq (, $(POCO_MYSQL_CONFIG))
else
ifndef POCO_MYSQL_INCLUDE
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
POCO_MYSQL_INCLUDE = -I/usr/local/include
POCO_MYSQL_INCLUDE = /usr/local/include
else
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include/mysql; echo $$?))
POCO_MYSQL_INCLUDE = -I/usr/local/opt/mysql-client/include/mysql
POCO_MYSQL_INCLUDE = /usr/local/opt/mysql-client/include/mysql
else
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/include; echo $$?))
POCO_MYSQL_INCLUDE = -I/usr/local/opt/mysql-client/include
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 = -I/opt/homebrew/opt/mysql-client/include
POCO_MYSQL_INCLUDE = /opt/homebrew/opt/mysql-client/include
endif
endif
endif
@ -40,13 +40,13 @@ else
ifndef POCO_MYSQL_LIB
ifeq (0, $(shell test -d /usr/local/include/mysql; echo $$?))
POCO_MYSQL_LIB = -L/usr/local/lib
POCO_MYSQL_LIB = /usr/local/lib
else
ifeq (0, $(shell test -d /usr/local/opt/mysql-client/lib; echo $$?))
POCO_MYSQL_LIB = -L/usr/local/opt/mysql-client/lib
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 = -L/opt/homebrew/opt/mysql-client/lib
POCO_MYSQL_LIB = /opt/homebrew/opt/mysql-client/lib
endif
endif
endif
@ -54,8 +54,8 @@ else
endif
ifdef POCO_MYSQL_INCLUDE
INCLUDE += $(POCO_MYSQL_INCLUDE)
INCLUDE += -I$(POCO_MYSQL_INCLUDE)
endif
ifdef POCO_MYSQL_LIB
SYSLIBS += $(POCO_MYSQL_LIB)
SYSLIBS += -L$(POCO_MYSQL_LIB)
endif