aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-07-15 21:00:26 -0400
committerNoah Misch <noah@leadboat.com>2015-07-15 21:00:30 -0400
commitc2b824e34e2ba9a26e914a41f4dd53f27304dc70 (patch)
treedf54433909bcd6d5da9361ac025390122a0b5e54 /src
parent21a101848b269e4fff9ccd3a5b5f777911399091 (diff)
downloadpostgresql-c2b824e34e2ba9a26e914a41f4dd53f27304dc70.tar.gz
postgresql-c2b824e34e2ba9a26e914a41f4dd53f27304dc70.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/backend/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 4f0ea3f60c3..98b978f3da4 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -88,7 +88,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,$^)