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

Commit20c105c

Browse files
committed
solaris: Remove unnecessary gcc / gnu ld vs sun studio differences
Unfortunately one with_gnu_ld reference remains, otherwise we could remove theconfigure support for determining with_gnu_ld.Reviewed-By: Thomas Munro <thomas.munro@gmail.com>Discussion:https://postgr.es/m/20220807012914.ydz73yte6j3coulo@awork3.anarazel.de
1 parent8f12a4e commit20c105c

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

‎src/Makefile.shlib

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,9 @@ ifeq ($(PORTNAME), linux)
188188
endif
189189

190190
ifeq ($(PORTNAME), solaris)
191-
ifeq ($(GCC), yes)
192-
LINK.shared= $(COMPILER) -shared -Wl,-Bsymbolic
193-
else
194-
LINK.shared= $(COMPILER) -G -Bsymbolic
195-
endif
191+
LINK.shared= $(COMPILER) -shared -Wl,-Bsymbolic
196192
ifdef soname
197-
ifeq ($(with_gnu_ld), yes)
198-
LINK.shared+= -Wl,-soname,$(soname)
199-
else
200-
LINK.shared+= -h $(soname)
201-
endif
193+
LINK.shared+= -Wl,-soname,$(soname)
202194
endif
203195
endif
204196

‎src/makefiles/Makefile.solaris

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
# src/makefiles/Makefile.solaris
22

33
AROPT = crs
4+
rpath = -Wl,-rpath,'$(rpathdir)'
45

56
ifeq ($(with_gnu_ld), yes)
67
export_dynamic = -Wl,-E
7-
rpath = -Wl,-rpath,'$(rpathdir)'
8-
else
9-
rpath = -Wl,-R'$(rpathdir)'
108
endif
119

12-
1310
# Rule for building a shared library from a single .o file
1411
%.so: %.o
15-
ifeq ($(GCC), yes)
1612
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@
17-
else
18-
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -G -o $@
19-
endif
2013

2114
sqlmansect = 5sql

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp