22#
33# GNUMakefile for psqlodbc (Postgres ODBC driver)
44#
5- # $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.8 2000/12/16 18:14:25 petere Exp $
5+ # $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.9 2001/02/10 05:50:27 momjian Exp $
66#
77# -------------------------------------------------------------------------
88
@@ -24,7 +24,6 @@ OBJS = info.o bind.o columninfo.o connection.o convert.o drvconn.o \
2424 gpps.o tuple.o tuplelist.o dlg_specific.o$(OBJX )
2525
2626SHLIB_LINK =$(filter -lm,$(LIBS ) )
27-
2827all : all-lib
2928
3029# Shared library stuff
@@ -33,7 +32,13 @@ include $(top_srcdir)/src/Makefile.shlib
3332# Symbols must be resolved to the version in the shared library because
3433# the driver manager (e.g., iodbc) provides some symbols with the same
3534# names and we don't want those. (This issue is probably ELF specific.)
35+ #
36+ # BSD/OS fails with libc and crt1.o undefined symbols without this.
37+ # bjm 2001-02-09
38+ #
39+ ifneq ($(PORTNAME ) , bsdi)
3640LINK.shared +=$(shlib_symbolic )
41+ endif
3742
3843odbc_headers = isql.h isqlext.h iodbc.h
3944odbc_includedir =$(includedir ) /iodbc