Skip to content

Commit 4fa3741

Browse files
committed
Use -Bsymbolic for shared libraries on HP-UX and Solaris.
These platforms are also subject to the mis-linking problem addressed in commit e3d77ea. It's not clear whether we could solve it with a solution equivalent to GNU ld's version scripts, but -Bsymbolic appears to fix it, so let's use that. Like the previous commit, back-patch as far as v10. Discussion: https://postgr.es/m/153626613985.23143.4743626885618266803@wrigleys.postgresql.org
1 parent 14ea365 commit 4fa3741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Makefile.shlib

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ ifeq ($(PORTNAME), hpux)
198198
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
199199
endif
200200
ifeq ($(with_gnu_ld), yes)
201-
LINK.shared = $(CC) -shared
201+
LINK.shared = $(CC) -shared -Wl,-Bsymbolic
202202
ifdef soname
203203
LINK.shared += -Wl,-h -Wl,$(soname)
204204
endif
205205
else
206-
LINK.shared = $(LD) -b
206+
LINK.shared = $(LD) -b -Bsymbolic
207207
ifdef soname
208208
LINK.shared += +h $(soname)
209209
endif
@@ -240,9 +240,9 @@ endif
240240

241241
ifeq ($(PORTNAME), solaris)
242242
ifeq ($(GCC), yes)
243-
LINK.shared = $(COMPILER) -shared
243+
LINK.shared = $(COMPILER) -shared -Wl,-Bsymbolic
244244
else
245-
LINK.shared = $(COMPILER) -G
245+
LINK.shared = $(COMPILER) -G -Bsymbolic
246246
endif
247247
ifdef soname
248248
ifeq ($(with_gnu_ld), yes)

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