Fix linker options for ODBC driver. See comment in

src/interfaces/odbc/GNUmakefile.
This commit is contained in:
Peter Eisentraut 2000-12-16 18:14:25 +00:00
parent 2a81896a2a
commit 9cf0a82fc3
9 changed files with 16 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#
# 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 $
#
#-------------------------------------------------------------------------
@ -30,6 +30,11 @@ all: all-lib
# 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

View File

@ -15,6 +15,7 @@ endif
ifeq ($(DLSUFFIX), .so)
CFLAGS_SL = -fpic
export_dynamic = -export-dynamic
shlib_symbolic = -Bsymbolic
else
CFLAGS_SL =
endif

View File

@ -3,6 +3,7 @@ AROPT = cr
ifdef ELF_SYSTEM
export_dynamic = -export-dynamic
rpath = -R$(libdir)
shlib_symbolic = -Bsymbolic
endif
DLSUFFIX = .so

View File

@ -1,6 +1,7 @@
MK_NO_LORDER= true
AROPT = crs
rpath = -Wl,-rpath,$(libdir)
shlib_symbolic = -Wl,-B,symbolic
DLSUFFIX = .so
# PIC is default

View File

@ -1,6 +1,7 @@
AROPT = crs
export_dynamic = -export-dynamic
rpath = -Wl,-rpath,$(libdir)
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
CFLAGS_SL = -fpic

View File

@ -3,6 +3,7 @@ AROPT = cr
ifdef ELF_SYSTEM
export_dynamic = -Wl,-E
rpath = -Wl,-R$(libdir)
shlib_symbolic = -Wl,-Bsymbolic
endif
DLSUFFIX = .so

View File

@ -3,6 +3,7 @@ AROPT = cr
ifdef ELF_SYSTEM
export_dynamic = -Wl,-E
rpath = -R$(libdir)
shlib_symbolic = -Bsymbolic
endif
DLSUFFIX = .so

View File

@ -1,4 +1,4 @@
# $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
@ -8,7 +8,7 @@ rpath = -Wl,-rpath,$(libdir)
else
rpath = -Wl,-R$(libdir)
endif
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
ifeq ($(GCC), yes)

View File

@ -3,6 +3,8 @@ export_dynamic = -Wl,-Bexport
ifeq ($(ld_R_works), yes)
rpath = -Wl,-R$(libdir)
endif
shlib_symbolic = -Wl,-Bsymbolic
DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fpic