File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ AROPT = crs
8
8
9
9
DLSUFFIX = .so
10
10
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
16
16
endif
17
17
18
18
@@ -28,11 +28,11 @@ $(POSTGRES_IMP):
28
28
ifeq ($(host_os), aix3.2.5)
29
29
$(MKLDEXPORT) postgres $(bindir) > $@
30
30
else
31
- ifneq (,$(findstring aix4.1, $(host_os)))
31
+ ifneq (,$(findstring aix4.1, $(host_os)))
32
32
$(MKLDEXPORT) postgres $(bindir) > $@
33
- else
33
+ else
34
34
$(MKLDEXPORT) postgres . > $@
35
- endif
35
+ endif
36
36
endif
37
37
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS)
38
38
Original file line number Diff line number Diff line change 1
1
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
+
3
8
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
5
14
endif
6
15
shlib_symbolic = -Wl,-Bsymbolic
7
16
You can’t perform that action at this time.
0 commit comments