summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.aix
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-11-09 04:17:53 +0000
committerBruce Momjian <bruce@momjian.us>2000-11-09 04:17:53 +0000
commita0951eec081bc34a30d069910c0a2ceb6515042a (patch)
treedc6342f75ed13b2154a9afb95310d9055f9e3b17 /src/makefiles/Makefile.aix
parent372e598c44a9f26cd30bbf96896813d0ef3557b2 (diff)
downloadpostgresql-a0951eec081bc34a30d069910c0a2ceb6515042a.tar.gz
Please apply this patch to current, to fix a problem with runcheck,
that installs into a different path than is configured. With this applied both postmaster and the shared libs are location independent for AIX 4.2 and up. Thanks Andreas
Diffstat (limited to 'src/makefiles/Makefile.aix')
-rw-r--r--src/makefiles/Makefile.aix14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index 80d949d2e6..d3ee2fab35 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -26,12 +26,20 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
$(POSTGRES_IMP):
@echo Making $@
+ifeq ($(host_os), aix3.2.5)
$(MKLDEXPORT) postgres $(bindir) > $@
+else
+ ifeq ($(host_os), aix4.1)
+ $(MKLDEXPORT) postgres $(bindir) > $@
+ else
+ $(MKLDEXPORT) postgres . > $@
+ endif
+endif
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS)
%$(EXPSUFF): %.o
- $(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
+ $(MKLDEXPORT) $*.o > $*$(EXPSUFF)
%$(DLSUFFIX): %.o %$(EXPSUFF)
- @echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
- $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc
+ @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
+ $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL)