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

Commit4fa3741

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 parent14ea365 commit4fa3741

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)

[8]ページ先頭

©2009-2025 Movatter.jp