1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-19 23:22:23 +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:
Bruce Momjian
2002-10-09 16:21:54 +00:00
parent ba8e20a6dd
commit 33a6b67b51
5 changed files with 34 additions and 25 deletions

View File

@@ -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