mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
fix(ODBC): mac build and run #4230
This commit is contained in:
parent
73e191f185
commit
5e6bb8e396
@ -5,7 +5,11 @@
|
||||
#
|
||||
|
||||
ifndef POCO_ODBC_INCLUDE
|
||||
ifeq (0, $(shell test -e /usr/include/sql.h; echo $$?))
|
||||
POCO_ODBC_INCLUDE = /usr/include
|
||||
else ifeq (0, $(shell test -e /opt/homebrew/include; echo $$?))
|
||||
POCO_ODBC_INCLUDE = /opt/homebrew/include
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef POCO_ODBC_LIB
|
||||
@ -13,6 +17,8 @@ ifeq (0, $(shell test -d /usr/lib/$(OSARCH)-linux-gnu; echo $$?))
|
||||
POCO_ODBC_LIB = /usr/lib/$(OSARCH)-linux-gnu
|
||||
else ifeq (0, $(shell test -d /usr/lib64; echo $$?))
|
||||
POCO_ODBC_LIB = /usr/lib64
|
||||
else ifeq (0, $(shell test -d /opt/homebrew/lib; echo $$?))
|
||||
POCO_ODBC_LIB = /opt/homebrew/lib
|
||||
else
|
||||
POCO_ODBC_LIB = /usr/lib
|
||||
endif
|
||||
|
@ -22,8 +22,10 @@ ifneq ($(OSNAME),Darwin)
|
||||
SYSLIBS += -lltdl
|
||||
endif
|
||||
ifneq ($(OSNAME),FreeBSD)
|
||||
ifneq ($(OSNAME),Darwin)
|
||||
SYSLIBS += -ldl
|
||||
endif
|
||||
endif
|
||||
|
||||
objects = ODBCTestSuite Driver \
|
||||
ODBCDB2Test ODBCMySQLTest ODBCOracleTest ODBCPostgreSQLTest \
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include "Poco/Data/Transaction.h"
|
||||
#include "Poco/UnicodeConverter.h"
|
||||
#include "Poco/UTFString.h"
|
||||
#include <sqltypes.h>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <iterator>
|
||||
|
Loading…
x
Reference in New Issue
Block a user