mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
ODBC library detection
This commit is contained in:
parent
956aafbd0b
commit
6951cfa3c7
@ -8,10 +8,12 @@
|
||||
|
||||
include $(POCO_BASE)/build/rules/global
|
||||
|
||||
ifeq ($(OSNAME),Darwin)
|
||||
ifeq (0, $(shell test -e /usr/lib/libodbc.so; echo $$?))
|
||||
SYSLIBS += -lodbc -lodbcinst
|
||||
else ifeq (0, $(shell test -e /usr/lib/libiodbc.so; echo $$?))
|
||||
SYSLIBS += -liodbc -liodbcinst
|
||||
else
|
||||
SYSLIBS += -lodbc -lodbcinst
|
||||
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
|
||||
endif
|
||||
|
||||
objects = Binder ConnectionHandle DataTypes EnvironmentHandle \
|
||||
|
@ -8,10 +8,12 @@
|
||||
|
||||
include $(POCO_BASE)/build/rules/global
|
||||
|
||||
ifeq ($(OSNAME),Darwin)
|
||||
ifeq (0, $(shell test -e /usr/lib/libodbc.so; echo $$?))
|
||||
SYSLIBS += -lodbc -lodbcinst
|
||||
else ifeq (0, $(shell test -e /usr/lib/libiodbc.so; echo $$?))
|
||||
SYSLIBS += -liodbc -liodbcinst
|
||||
else
|
||||
SYSLIBS += -lodbc -lodbcinst
|
||||
$(error No ODBC library found. Please install unixODBC or iODBC and try again)
|
||||
endif
|
||||
|
||||
objects = ODBCTestSuite Driver \
|
||||
|
Loading…
x
Reference in New Issue
Block a user