Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9cf0a82

Browse files
committed
Fix linker options for ODBC driver. See comment in
src/interfaces/odbc/GNUmakefile.
1 parent 2a81896 commit 9cf0a82

9 files changed

+16
-3
lines changed

src/interfaces/odbc/GNUmakefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# GNUMakefile for psqlodbc (Postgres ODBC driver)
44
#
5-
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.7 2000/10/28 15:10:36 petere Exp $
5+
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.8 2000/12/16 18:14:25 petere Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -30,6 +30,11 @@ all: all-lib
3030
# Shared library stuff
3131
include $(top_srcdir)/src/Makefile.shlib
3232

33+
# Symbols must be resolved to the version in the shared library because
34+
# the driver manager (e.g., iodbc) provides some symbols with the same
35+
# names and we don't want those. (This issue is probably ELF specific.)
36+
LINK.shared += $(shlib_symbolic)
37+
3338
odbc_headers = isql.h isqlext.h iodbc.h
3439
odbc_includedir = $(includedir)/iodbc
3540

src/makefiles/Makefile.bsdi

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ endif
1515
ifeq ($(DLSUFFIX), .so)
1616
CFLAGS_SL = -fpic
1717
export_dynamic = -export-dynamic
18+
shlib_symbolic = -Bsymbolic
1819
else
1920
CFLAGS_SL =
2021
endif

src/makefiles/Makefile.freebsd

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ AROPT = cr
33
ifdef ELF_SYSTEM
44
export_dynamic = -export-dynamic
55
rpath = -R$(libdir)
6+
shlib_symbolic = -Bsymbolic
67
endif
78

89
DLSUFFIX = .so

src/makefiles/Makefile.irix5

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MK_NO_LORDER= true
22
AROPT = crs
33
rpath = -Wl,-rpath,$(libdir)
4+
shlib_symbolic = -Wl,-B,symbolic
45

56
DLSUFFIX = .so
67
# PIC is default

src/makefiles/Makefile.linux

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
AROPT = crs
22
export_dynamic = -export-dynamic
33
rpath = -Wl,-rpath,$(libdir)
4+
shlib_symbolic = -Wl,-Bsymbolic
45
DLSUFFIX = .so
56
CFLAGS_SL = -fpic
67

src/makefiles/Makefile.netbsd

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ AROPT = cr
33
ifdef ELF_SYSTEM
44
export_dynamic = -Wl,-E
55
rpath = -Wl,-R$(libdir)
6+
shlib_symbolic = -Wl,-Bsymbolic
67
endif
78

89
DLSUFFIX = .so

src/makefiles/Makefile.openbsd

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ AROPT = cr
33
ifdef ELF_SYSTEM
44
export_dynamic = -Wl,-E
55
rpath = -R$(libdir)
6+
shlib_symbolic = -Bsymbolic
67
endif
78

89
DLSUFFIX = .so

src/makefiles/Makefile.solaris

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.5 2000/11/04 16:35:55 petere Exp $
1+
# $Header: /cvsroot/pgsql/src/makefiles/Makefile.solaris,v 1.6 2000/12/16 18:14:25 petere Exp $
22

33
AROPT = crs
44

@@ -8,7 +8,7 @@ rpath = -Wl,-rpath,$(libdir)
88
else
99
rpath = -Wl,-R$(libdir)
1010
endif
11-
11+
shlib_symbolic = -Wl,-Bsymbolic
1212

1313
DLSUFFIX = .so
1414
ifeq ($(GCC), yes)

src/makefiles/Makefile.unixware

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ export_dynamic = -Wl,-Bexport
33
ifeq ($(ld_R_works), yes)
44
rpath = -Wl,-R$(libdir)
55
endif
6+
shlib_symbolic = -Wl,-Bsymbolic
7+
68
DLSUFFIX = .so
79
ifeq ($(GCC), yes)
810
CFLAGS_SL = -fpic

0 commit comments

Comments
 (0)