Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd0ef30

Browse files
committed
Fix PGXS support for building loadable modules on AIX.
Building a shlib on AIX requires use of the mkldexport.sh script, but wefailed to install that, preventing its use from non-source-tree contexts.Also, Makefile.aix had the wrong idea about where to find the installedcopy of the postgres.imp symbol file used by AIX.Per report from John Pierce. Patch all the way back, since this has beenbroken since the beginning of PGXS.
1 parentbb3aa7a commitbd0ef30

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎src/backend/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ else
234234
endif
235235
ifeq ($(MAKE_EXPORTS), true)
236236
$(INSTALL_DATA) $(POSTGRES_IMP) '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
237+
$(INSTALL_PROGRAM) $(MKLDEXPORT) '$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)/mkldexport.sh'
237238
endif
238239

239240
.PHONY: install-bin
@@ -252,6 +253,7 @@ endif
252253
endif
253254
ifeq ($(MAKE_EXPORTS), true)
254255
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
256+
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)'
255257
endif
256258

257259

@@ -261,6 +263,7 @@ uninstall:
261263
rm -f'$(DESTDIR)$(bindir)/postgres$(X)''$(DESTDIR)$(bindir)/postmaster'
262264
ifeq ($(MAKE_EXPORTS), true)
263265
rm -f '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
266+
rm -f '$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)/mkldexport.sh'
264267
endif
265268
ifeq ($(PORTNAME), cygwin)
266269
ifeq ($(MAKE_DLL), true)

‎src/makefiles/Makefile.aix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ endif
2727
POSTGRES_IMP= postgres.imp
2828

2929
ifdef PGXS
30-
BE_DLLLIBS= -Wl,-bI:$(bindir)/postgres/$(POSTGRES_IMP)
30+
BE_DLLLIBS= -Wl,-bI:$(pkglibdir)/$(POSTGRES_IMP)
3131
else
3232
BE_DLLLIBS= -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP)
3333
endif
3434

35-
MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
35+
MKLDEXPORT_DIR=src/backend/port/aix
36+
MKLDEXPORT=$(top_srcdir)/$(MKLDEXPORT_DIR)/mkldexport.sh
3637

3738
%.exp: %.o
3839
$(MKLDEXPORT) $^ >$@

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp