Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit355fd62

Browse files
committed
Use -Bsymbolic for shared libraries on HP-UX and Solaris.
These platforms are also subject to the mis-linking problem addressedin commite3d77ea. It's not clear whether we could solve it witha solution equivalent to GNU ld's version scripts, but -Bsymbolicappears 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 parentd6ff532 commit355fd62

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
@@ -197,12 +197,12 @@ ifeq ($(PORTNAME), hpux)
197197
shlib= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
198198
endif
199199
ifeq ($(with_gnu_ld), yes)
200-
LINK.shared= $(CC) -shared
200+
LINK.shared= $(CC) -shared -Wl,-Bsymbolic
201201
ifdef soname
202202
LINK.shared+= -Wl,-h -Wl,$(soname)
203203
endif
204204
else
205-
LINK.shared= $(LD) -b
205+
LINK.shared= $(LD) -b -Bsymbolic
206206
ifdef soname
207207
LINK.shared+= +h $(soname)
208208
endif
@@ -239,9 +239,9 @@ endif
239239

240240
ifeq ($(PORTNAME), solaris)
241241
ifeq ($(GCC), yes)
242-
LINK.shared= $(COMPILER) -shared
242+
LINK.shared= $(COMPILER) -shared -Wl,-Bsymbolic
243243
else
244-
LINK.shared= $(COMPILER) -G
244+
LINK.shared= $(COMPILER) -G -Bsymbolic
245245
endif
246246
ifdef soname
247247
ifeq ($(with_gnu_ld), yes)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp