This is a patch for the /usr/local/share/examples/iodbc/Makefile so that
the test programs actually compile with the provided makefile. There was
a missing linkage with posix threads that render the build process to
fail. Attached is the extra patch file.
--- samples/Makefile.sample.orig        Thu Oct  4 11:14:09 2007
+++ samples/Makefile.sample     Thu Oct  4 11:14:31 2007
@@ -73,7 +73,7 @@
 all: iodbctest iodbctestw
 
 iodbctest: iodbctest.c
-       cc `iodbc-config --cflags` -o iodbctest iodbctest.c `iodbc-config 
--static-libs`
+       cc `iodbc-config --cflags` -o iodbctest iodbctest.c `iodbc-config 
--static-libs` -lpthread
 
 iodbctestw: iodbctest.c
-       cc `iodbc-config --cflags` -DUNICODE -o iodbctestw iodbctest.c 
`iodbc-config --static-libs`
+       cc `iodbc-config --cflags` -DUNICODE -o iodbctestw iodbctest.c 
`iodbc-config --static-libs` -lpthread

Reply via email to