summaryrefslogtreecommitdiffstats
path: root/config.tests/unix
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-05-28 01:12:26 (GMT)
committerBill King <bill.king@nokia.com>2009-05-28 01:12:26 (GMT)
commit8aef511877d460e4d7e75c978142f1ca3bd50451 (patch)
tree78362c8a123dce23991f0d6e0200db4e13278650 /config.tests/unix
parentfcfdccc03b6dd26a82e87a6b6a0ca48d67f78cf6 (diff)
downloadQt-8aef511877d460e4d7e75c978142f1ca3bd50451.zip
Qt-8aef511877d460e4d7e75c978142f1ca3bd50451.tar.gz
Qt-8aef511877d460e4d7e75c978142f1ca3bd50451.tar.bz2
Adds support for linking against iodbc on linux.
If unixodbc detection fails, try and link/detect iodbc libraries and link against them. Reviewed-by: Lincoln Ramsay
Diffstat (limited to 'config.tests/unix')
-rw-r--r--config.tests/unix/iodbc/iodbc.cpp7
-rw-r--r--config.tests/unix/iodbc/iodbc.pro4
2 files changed, 11 insertions, 0 deletions
diff --git a/config.tests/unix/iodbc/iodbc.cpp b/config.tests/unix/iodbc/iodbc.cpp
new file mode 100644
index 0000000..6b64e12
--- /dev/null
+++ b/config.tests/unix/iodbc/iodbc.cpp
@@ -0,0 +1,7 @@
+#include <sql.h>
+#include <sqlext.h>
+
+int main(int, char **)
+{
+ return 0;
+}
diff --git a/config.tests/unix/iodbc/iodbc.pro b/config.tests/unix/iodbc/iodbc.pro
new file mode 100644
index 0000000..465a9a7
--- /dev/null
+++ b/config.tests/unix/iodbc/iodbc.pro
@@ -0,0 +1,4 @@
+SOURCES = iodbc.cpp
+CONFIG -= qt dylib
+mac:CONFIG -= app_bundle
+LIBS += -liodbc