src/interfaces/odbc/GNUmakefile.
#
# GNUMakefile for psqlodbc (Postgres ODBC driver)
#
-# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.7 2000/10/28 15:10:36 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.8 2000/12/16 18:14:25 petere Exp $
#
#-------------------------------------------------------------------------
# Shared library stuff
include $(top_srcdir)/src/Makefile.shlib
+# Symbols must be resolved to the version in the shared library because
+# the driver manager (e.g., iodbc) provides some symbols with the same
+# names and we don't want those. (This issue is probably ELF specific.)
+LINK.shared += $(shlib_symbolic)
+
odbc_headers = isql.h isqlext.h iodbc.h
odbc_includedir = $(includedir)/iodbc
ifeq ($(DLSUFFIX), .so)
CFLAGS_SL = -fpic
export_dynamic = -export-dynamic
+shlib_symbolic = -Bsymbolic
else
CFLAGS_SL =
endif
ifdef ELF_SYSTEM
export_dynamic = -export-dynamic
rpath = -R$(libdir)
+shlib_symbolic = -Bsymbolic
endif
DLSUFFIX = .so
MK_NO_LORDER= true
AROPT = crs
rpath = -Wl,-rpath,$(libdir)
+shlib_symbolic = -Wl,-B,symbolic
DLSUFFIX = .so
# PIC is default
AROPT = crs
export_dynamic = -export-dynamic
rpath = -Wl,-rpath,$(libdir)
+shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
CFLAGS_SL = -fpic
ifdef ELF_SYSTEM
export_dynamic = -Wl,-E
rpath = -Wl,-R$(libdir)
+shlib_symbolic = -Wl,-Bsymbolic
endif
DLSUFFIX = .so
ifdef ELF_SYSTEM
export_dynamic = -Wl,-E
rpath = -R$(libdir)
+shlib_symbolic = -Bsymbolic
endif
DLSUFFIX = .so
-# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.5 2000/11/04 16:35:55 petere Exp $
+# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.6 2000/12/16 18:14:25 petere Exp $
AROPT = crs
else
rpath = -Wl,-R$(libdir)
endif
-
+shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
ifeq ($(GCC), yes)
ifeq ($(ld_R_works), yes)
rpath = -Wl,-R$(libdir)
endif
+shlib_symbolic = -Wl,-Bsymbolic
+
DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fpic