Commit a0951eec authored by Bruce Momjian's avatar Bruce Momjian

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
parent 372e598c
From: ZEUGSWETTER Andreas IZ5 <Andreas.Zeugswetter@telecom.at> From: Zeugswetter Andreas <ZeugswetterA@wien.spardat.at>
Mon Apr 17 14:01:23 EDT 2000 Wed Nov 8 11:16:35 MEZ 2000
AIX 4.3.2 with native IBM compiler xlc 3.6.4 passes all regression tests. AIX 4.3.2 with native IBM compiler xlc 3.6.4 passes all regression tests.
Other versions of OS and compiler should also work. If you don't have Other versions of OS and compiler should also work. If you don't have
a powerpc there might be differences in the geometry regression test. a powerpc there might be differences in the geometry regression test.
Use the following configure flags in addition to your own: Use the following configure flags in addition to your own
./configure --without-CXX if you have readline or libz there:
and if you have readline there:
--with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-includes=/usr/local/include --with-libraries=/usr/local/lib
libpq++ does not work because xlC does not have the string and bool classes. 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. ...@@ -16,6 +15,5 @@ compiling the few files, that fail, with g++ does work.
Compiling PostgreSQL with gcc (2.95.2) on AIX does work if you use the Compiling PostgreSQL with gcc (2.95.2) on AIX does work if you use the
configure option: --with-template=aix_gcc configure option: --with-template=aix_gcc
With the current compiler flags the redefines of int8 - int64, that prior There will probably be warnings about int8 - int64 redefines and 0.0/0.0
versions had a problem with, are not a problem any more. devision warnings, which you can safely ignore.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California # Copyright (c) 1998, Regents of the University of California
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.33 2000/11/08 20:18:49 petere Exp $ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.34 2000/11/09 04:17:53 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -278,8 +278,8 @@ else # PORTNAME == aix ...@@ -278,8 +278,8 @@ else # PORTNAME == aix
# AIX case # AIX case
$(shlib): lib$(NAME).a $(shlib): lib$(NAME).a
$(MKLDEXPORT) lib$(NAME).a $(libdir) > lib$(NAME)$(EXPSUFF) $(MKLDEXPORT) lib$(NAME).a > lib$(NAME)$(EXPSUFF)
$(LD) -H512 -bM:SRE -bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK) $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)
endif # PORTNAME == aix endif # PORTNAME == aix
......
...@@ -26,12 +26,20 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh ...@@ -26,12 +26,20 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
$(POSTGRES_IMP): $(POSTGRES_IMP):
@echo Making $@ @echo Making $@
ifeq ($(host_os), aix3.2.5)
$(MKLDEXPORT) postgres $(bindir) > $@ $(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) $(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS)
%$(EXPSUFF): %.o %$(EXPSUFF): %.o
$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF) $(MKLDEXPORT) $*.o > $*$(EXPSUFF)
%$(DLSUFFIX): %.o %$(EXPSUFF) %$(DLSUFFIX): %.o %$(EXPSUFF)
@echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL)
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