Skip to content

Commit a0951ee

Browse files
committed
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
1 parent 372e598 commit a0951ee

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

doc/FAQ_AIX

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
From: ZEUGSWETTER Andreas IZ5 <Andreas.Zeugswetter@telecom.at>
2-
Mon Apr 17 14:01:23 EDT 2000
1+
From: Zeugswetter Andreas <ZeugswetterA@wien.spardat.at>
2+
Wed Nov 8 11:16:35 MEZ 2000
33

44
AIX 4.3.2 with native IBM compiler xlc 3.6.4 passes all regression tests.
55
Other versions of OS and compiler should also work. If you don't have
66
a powerpc there might be differences in the geometry regression test.
77

8-
Use the following configure flags in addition to your own:
9-
./configure --without-CXX
10-
and if you have readline there:
8+
Use the following configure flags in addition to your own
9+
if you have readline or libz there:
1110
--with-includes=/usr/local/include --with-libraries=/usr/local/lib
1211

1312
libpq++ does not work because xlC does not have the string and bool classes.
@@ -16,6 +15,5 @@ compiling the few files, that fail, with g++ does work.
1615
Compiling PostgreSQL with gcc (2.95.2) on AIX does work if you use the
1716
configure option: --with-template=aix_gcc
1817

19-
With the current compiler flags the redefines of int8 - int64, that prior
20-
versions had a problem with, are not a problem any more.
21-
18+
There will probably be warnings about int8 - int64 redefines and 0.0/0.0
19+
devision warnings, which you can safely ignore.

src/Makefile.shlib

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.33 2000/11/08 20:18:49 petere Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.34 2000/11/09 04:17:53 momjian Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -278,8 +278,8 @@ else # PORTNAME == aix
278278

279279
# AIX case
280280
$(shlib): lib$(NAME).a
281-
$(MKLDEXPORT) lib$(NAME).a $(libdir) > lib$(NAME)$(EXPSUFF)
282-
$(LD) -H512 -bM:SRE -bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)
281+
$(MKLDEXPORT) lib$(NAME).a > lib$(NAME)$(EXPSUFF)
282+
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)
283283

284284
endif # PORTNAME == aix
285285

src/makefiles/Makefile.aix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,20 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
2626

2727
$(POSTGRES_IMP):
2828
@echo Making $@
29+
ifeq ($(host_os), aix3.2.5)
2930
$(MKLDEXPORT) postgres $(bindir) > $@
31+
else
32+
ifeq ($(host_os), aix4.1)
33+
$(MKLDEXPORT) postgres $(bindir) > $@
34+
else
35+
$(MKLDEXPORT) postgres . > $@
36+
endif
37+
endif
3038
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS)
3139

3240
%$(EXPSUFF): %.o
33-
$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
41+
$(MKLDEXPORT) $*.o > $*$(EXPSUFF)
3442

3543
%$(DLSUFFIX): %.o %$(EXPSUFF)
36-
@echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
37-
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc
44+
@echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
45+
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL)

0 commit comments

Comments
 (0)