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

Commit1f9010c

Browse files
committed
> > This patch corrects the use of rpath and export options when compiling
> > on postgres on Unixware with GCC built with gnu-as and gnu-ld.Remove leading spaces in conditional tests in patch and Makefile.aix.Nicolas Bazin
1 parent80f46fa commit1f9010c

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

‎src/makefiles/Makefile.aix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ AROPT = crs
88

99
DLSUFFIX = .so
1010
ifneq ($(GCC), yes)
11-
ifeq ($(host_os), aix3.2.5)
12-
LDFLAGS_SL = -e _nostart
13-
else
14-
LDFLAGS_SL = -bnoentry
15-
endif
11+
ifeq ($(host_os), aix3.2.5)
12+
LDFLAGS_SL = -e _nostart
13+
else
14+
LDFLAGS_SL = -bnoentry
15+
endif
1616
endif
1717

1818

@@ -28,11 +28,11 @@ $(POSTGRES_IMP):
2828
ifeq ($(host_os), aix3.2.5)
2929
$(MKLDEXPORT) postgres $(bindir) > $@
3030
else
31-
ifneq (,$(findstring aix4.1, $(host_os)))
31+
ifneq (,$(findstring aix4.1, $(host_os)))
3232
$(MKLDEXPORT) postgres $(bindir) > $@
33-
else
33+
else
3434
$(MKLDEXPORT) postgres . > $@
35-
endif
35+
endif
3636
endif
3737
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS)
3838

‎src/makefiles/Makefile.unixware

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
AROPT = crs
2-
export_dynamic = -Wl,-Bexport
2+
ifeq ($(with_gnu_ld), yes)
3+
export_dynamic = -Wl,-E
4+
else
5+
export_dynamic = -Wl,-Bexport
6+
endif
7+
38
ifeq ($(ld_R_works), yes)
4-
rpath = -Wl,-R$(libdir)
9+
ifeq ($(with_gnu_ld), yes)
10+
rpath = -Wl,-rpath,$(libdir)
11+
else
12+
rpath = -Wl,-R$(libdir)
13+
endif
514
endif
615
shlib_symbolic = -Wl,-Bsymbolic
716

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp