postgres.git / summary / log / commit / refs

commit    1dd2b6b680e9575ddb2c1b31e48ebfb9f51d9779
Author:   Noah Misch <noah@leadboat.com>
Date:     Thu Jul 16 01:00:26 2015 +0000

    AIX: Link the postgres executable with -Wl,-brtllib.
    
    This allows PostgreSQL modules and their dependencies to have undefined
    symbols, resolved at runtime.  Perl module shared objects rely on that
    in Perl 5.8.0 and later.  This fixes the crash when PL/PerlU loads such
    modules, as the hstore_plperl test suite does.  Module authors can link
    using -Wl,-G to permit undefined symbols; by default, linking will fail
    as it has.  Back-patch to 9.0 (all supported versions).


src/backend/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/Makefile b/src/backend/Makefile index 77334797bd9..e86514a9560 100644 --- a/src/backend/Makefile +++ b/src/backend/Makefile @@ -96,7 +96,7 @@ endif # win32 ifeq ($(PORTNAME), aix) postgres: $(POSTGRES_IMP) - $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(call expand_subsys,$(OBJS)) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $(call expand_subsys,$(OBJS)) -Wl,-bE:$(top_builddir)/src/backend/$(POSTGRES_IMP) $(LIBS) -Wl,-brtllib -o $@ $(POSTGRES_IMP): $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(call expand_subsys,$^) [parent: e9a859b549d7]