On 2007/10/04 17:52, Paul Irofti wrote:
> Resubmitted patch with -pthread instead of -lpthread.
> [-- Attachment #2: patch-iodbc-config_in --]

You should learn the ways of 'make update-patches' (-:

This needs a PKGNAME-main bump, I'm not sure if it needs
PKGNAME bump too or not (possibly not but I included it
here anyway).

It's going to take a long time for me to get my simh up
to -current to test, does anyone know if the static bits are
correct?

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/iodbc/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- Makefile    15 Sep 2007 20:34:00 -0000      1.14
+++ Makefile    9 Oct 2007 15:03:41 -0000
@@ -5,8 +5,8 @@ COMMENT-admin=  ODBC 3.x driver manager a
 
 V=             3.52.4
 DISTNAME=      libiodbc-${V}
-PKGNAME=       iodbc-${V}p0
-PKGNAME-main=  iodbc-${V}p0
+PKGNAME=       iodbc-${V}p1
+PKGNAME-main=  iodbc-${V}p1
 PKGNAME-admin= iodbc-admin-${V}p0
 CATEGORIES=    databases
 SHARED_LIBS += iodbcinst            3.15     # .3.15
Index: patches/patch-bin_iodbc-config_in
===================================================================
RCS file: patches/patch-bin_iodbc-config_in
diff -N patches/patch-bin_iodbc-config_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-bin_iodbc-config_in   9 Oct 2007 15:03:41 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+--- bin/iodbc-config.in.orig   Tue Oct  9 15:58:50 2007
++++ bin/iodbc-config.in        Tue Oct  9 16:01:19 2007
+@@ -192,16 +192,16 @@ if test "$echo_cflags" = "yes"; then
+       echo "$includes"
+ fi
+ if test "$echo_libs" = "yes"; then
+-      libs=""
++      libs="-pthread"
+       if test "$lib_iodbc" = "yes"; then
+               libs="$libs -liodbc -liodbcinst"
+       fi
+       echo "[EMAIL PROTECTED]@ $libs"
+ fi
+ if test "$echo_staticlibs" = "yes"; then
+-      libs=""
++      libs="-pthread"
+       if test "$lib_iodbc" = "yes"; then
+-              libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a @LIBADD_DL@"
++              libs="$libs @libdir@/libiodbc.a @libdir@/libiodbcinst.a 
@LIBADD_DL@"
+       fi
+       echo "$libs"
+ fi

Reply via email to