mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 14:39:53 +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
|
ifndef POCO_ODBC_INCLUDE
|
||||||
|
ifeq (0, $(shell test -e /usr/include/sql.h; echo $$?))
|
||||||
POCO_ODBC_INCLUDE = /usr/include
|
POCO_ODBC_INCLUDE = /usr/include
|
||||||
|
else ifeq (0, $(shell test -e /opt/homebrew/include; echo $$?))
|
||||||
|
POCO_ODBC_INCLUDE = /opt/homebrew/include
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef POCO_ODBC_LIB
|
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
|
POCO_ODBC_LIB = /usr/lib/$(OSARCH)-linux-gnu
|
||||||
else ifeq (0, $(shell test -d /usr/lib64; echo $$?))
|
else ifeq (0, $(shell test -d /usr/lib64; echo $$?))
|
||||||
POCO_ODBC_LIB = /usr/lib64
|
POCO_ODBC_LIB = /usr/lib64
|
||||||
|
else ifeq (0, $(shell test -d /opt/homebrew/lib; echo $$?))
|
||||||
|
POCO_ODBC_LIB = /opt/homebrew/lib
|
||||||
else
|
else
|
||||||
POCO_ODBC_LIB = /usr/lib
|
POCO_ODBC_LIB = /usr/lib
|
||||||
endif
|
endif
|
||||||
|
@ -22,8 +22,10 @@ ifneq ($(OSNAME),Darwin)
|
|||||||
SYSLIBS += -lltdl
|
SYSLIBS += -lltdl
|
||||||
endif
|
endif
|
||||||
ifneq ($(OSNAME),FreeBSD)
|
ifneq ($(OSNAME),FreeBSD)
|
||||||
|
ifneq ($(OSNAME),Darwin)
|
||||||
SYSLIBS += -ldl
|
SYSLIBS += -ldl
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
objects = ODBCTestSuite Driver \
|
objects = ODBCTestSuite Driver \
|
||||||
ODBCDB2Test ODBCMySQLTest ODBCOracleTest ODBCPostgreSQLTest \
|
ODBCDB2Test ODBCMySQLTest ODBCOracleTest ODBCPostgreSQLTest \
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#include "Poco/Data/Transaction.h"
|
#include "Poco/Data/Transaction.h"
|
||||||
#include "Poco/UnicodeConverter.h"
|
#include "Poco/UnicodeConverter.h"
|
||||||
#include "Poco/UTFString.h"
|
#include "Poco/UTFString.h"
|
||||||
#include <sqltypes.h>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user