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

File tree

9 files changed

+16
-3
lines changed

9 files changed

+16
-3
lines changed

src/interfaces/odbc/GNUmakefile

Lines changed: 6 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy