mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
> > > > 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
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.87 2002/09/05 18:28:46 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.88 2002/10/09 16:21:54 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -53,6 +53,25 @@ libpostgres.a: postgres.def
|
||||
|
||||
endif # win
|
||||
|
||||
ifeq ($(PORTNAME), aix)
|
||||
|
||||
postgres: $(POSTGRES_IMP)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -o $@
|
||||
|
||||
$(POSTGRES_IMP): $(OBJS)
|
||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $^
|
||||
ifeq ($(host_os), aix3.2.5)
|
||||
$(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@
|
||||
else
|
||||
ifneq (,$(findstring aix4.1, $(host_os)))
|
||||
$(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@
|
||||
else
|
||||
$(MKLDEXPORT) SUBSYS.o . > $@
|
||||
endif
|
||||
endif
|
||||
@rm -f SUBSYS.o
|
||||
|
||||
endif # aix
|
||||
|
||||
# Parallel make trickery
|
||||
$(OBJS): $(DIRS:%=%-recursive) ;
|
||||
|
@@ -47,7 +47,7 @@ else
|
||||
# for the base executable (AIX 4.2 and up)
|
||||
echo '#! .'
|
||||
else
|
||||
echo '#!' $2/$OBJNAME
|
||||
echo '#!' $2
|
||||
fi
|
||||
fi
|
||||
$NM -BCg $1 | \
|
||||
|
Reference in New Issue
Block a user