Commit 1f9010cc authored by Bruce Momjian's avatar Bruce Momjian

> > 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
parent 80f46fab
...@@ -8,11 +8,11 @@ AROPT = crs ...@@ -8,11 +8,11 @@ AROPT = crs
DLSUFFIX = .so DLSUFFIX = .so
ifneq ($(GCC), yes) ifneq ($(GCC), yes)
ifeq ($(host_os), aix3.2.5) ifeq ($(host_os), aix3.2.5)
LDFLAGS_SL = -e _nostart LDFLAGS_SL = -e _nostart
else else
LDFLAGS_SL = -bnoentry LDFLAGS_SL = -bnoentry
endif endif
endif endif
...@@ -28,11 +28,11 @@ $(POSTGRES_IMP): ...@@ -28,11 +28,11 @@ $(POSTGRES_IMP):
ifeq ($(host_os), aix3.2.5) ifeq ($(host_os), aix3.2.5)
$(MKLDEXPORT) postgres $(bindir) > $@ $(MKLDEXPORT) postgres $(bindir) > $@
else else
ifneq (,$(findstring aix4.1, $(host_os))) ifneq (,$(findstring aix4.1, $(host_os)))
$(MKLDEXPORT) postgres $(bindir) > $@ $(MKLDEXPORT) postgres $(bindir) > $@
else else
$(MKLDEXPORT) postgres . > $@ $(MKLDEXPORT) postgres . > $@
endif endif
endif endif
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS) $(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS)
......
AROPT = crs AROPT = crs
export_dynamic = -Wl,-Bexport ifeq ($(with_gnu_ld), yes)
export_dynamic = -Wl,-E
else
export_dynamic = -Wl,-Bexport
endif
ifeq ($(ld_R_works), yes) ifeq ($(ld_R_works), yes)
rpath = -Wl,-R$(libdir) ifeq ($(with_gnu_ld), yes)
rpath = -Wl,-rpath,$(libdir)
else
rpath = -Wl,-R$(libdir)
endif
endif endif
shlib_symbolic = -Wl,-Bsymbolic shlib_symbolic = -Wl,-Bsymbolic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment