]> granicus.if.org Git - postgresql/commitdiff
ODBC BSD/OS fix.
authorBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 15:59:16 +0000 (15:59 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 15:59:16 +0000 (15:59 +0000)
src/interfaces/odbc/GNUmakefile

index 7da15dc666d7322813895d09c1dd8743bcb423a5..4f2b8fc8d7cbc4329b3349c26e444c21f60b6648 100644 (file)
@@ -2,7 +2,7 @@
 #
 # GNUMakefile for psqlodbc (Postgres ODBC driver)
 #
-# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.10 2001/02/10 11:31:35 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.11 2001/02/10 15:59:16 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -36,9 +36,11 @@ include $(top_srcdir)/src/Makefile.shlib
 # BSD/OS fails with libc and crt1.o undefined symbols without this.
 # bjm 2001-02-09
 #
+ifneq ($(PORTNAME), bsdi)
 LINK.shared += $(shlib_symbolic)
-ifeq ($(PORTNAME), bsdi)
-SHLIB_LINK += -lc -R /usr/lib/crt1.o
+else
+LINK.shared = gcc -shared -Wl,-Bsymbolic,-soname,$(soname)
+SHLIB_LINK += -lc
 endif
 
 odbc_headers = isql.h isqlext.h iodbc.h