summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.aix
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-10-09 16:21:54 +0000
committerBruce Momjian <bruce@momjian.us>2002-10-09 16:21:54 +0000
commit33a6b67b517e55908fa8ad96d5e8a3aaac5c751d (patch)
tree95bea3a9ac837afb7a9247aa98a94a10bcb0c490 /src/makefiles/Makefile.aix
parentba8e20a6dd1de393e2eeab9e6cb70edd8115ca61 (diff)
downloadpostgresql-33a6b67b517e55908fa8ad96d5e8a3aaac5c751d.tar.gz
> > > > and mb conversions (pg_ascii2mic and pg_mic2ascii not
> > > > found in the postmaster and not included from elsewhere) > > > > shared libs on AIX need to be able to resolve all symbols at linkage time. > > Those two symbols are in backend/utils/SUBSYS.o but not in the postgres > > executable. > > They are defined in backend/utils/mb/conv.c and declared in > include/mb/pg_wchar.h. They're also linked into the > postmaster. I don't see anything unusual. Attached is a patch to fix the mb linking problems on AIX. As a nice side effect it reduces the duplicate symbol warnings to linking libpq.so and libecpg.so (all shlibs that are not postmaster loadable modules). Please apply to current (only affects AIX). The _LARGE_FILES problem is unfortunately still open, unless Peter has fixed it per his recent idea. Zeugswetter Andreas SB SD
Diffstat (limited to 'src/makefiles/Makefile.aix')
-rw-r--r--src/makefiles/Makefile.aix23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index 0044a8f3ca..bb0c2fd58b 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -7,12 +7,12 @@ MK_NO_LORDER= true
AROPT = crs
DLSUFFIX = .so
-ifneq ($(GCC), yes)
ifeq ($(host_os), aix3.2.5)
- LDFLAGS_SL = -e _nostart
-else
- LDFLAGS_SL = -bnoentry
+ifneq ($(GCC), yes)
+ LDFLAGS_SL = -e _nostart -H512 -bM:SRE
endif
+else
+ LDFLAGS_SL = -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
endif
@@ -23,24 +23,11 @@ POSTGRES_IMP= postgres$(IMPSUFF)
MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
-$(POSTGRES_IMP):
- @echo Making $@
-ifeq ($(host_os), aix3.2.5)
- $(MKLDEXPORT) postgres $(bindir) > $@
-else
-ifneq (,$(findstring aix4.1, $(host_os)))
- $(MKLDEXPORT) postgres $(bindir) > $@
-else
- $(MKLDEXPORT) postgres . > $@
-endif
-endif
- $(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS)
-
%$(EXPSUFF): %.o
$(MKLDEXPORT) $*.o > $*$(EXPSUFF)
%$(DLSUFFIX): %.o %$(EXPSUFF)
@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) $(LIBS) $(LDFLAGS_SL)
+ $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(LIBS)
sqlmansect = 7