The make variables MKLDEXPORT and POSTGRES_IMP were only used for AIX,
so they should have been removed with commit 0b16bb8776b.
From cec85fe70ead2c51c5150537ea4144a5896820dd Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <[email protected]>
Date: Tue, 20 Jan 2026 06:57:20 +0100
Subject: [PATCH] Remove more leftovers of AIX support
The make variables MKLDEXPORT and POSTGRES_IMP were only used for AIX,
so they should have been removed with commit 0b16bb8776b.
---
src/backend/Makefile | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/src/backend/Makefile b/src/backend/Makefile
index e03c92e70e4..baa9b05d021 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -81,7 +81,7 @@ override LDFLAGS := $(LDFLAGS) $(LDFLAGS_EX) $(LDFLAGS_EX_BE)
##########################################################################
-all: submake-libpgport submake-catalog-headers submake-utils-headers postgres
$(POSTGRES_IMP)
+all: submake-libpgport submake-catalog-headers submake-utils-headers postgres
ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), win32)
@@ -218,12 +218,8 @@ install-postgres-bitcode: $(OBJS) all
$(call install_llvm_module,postgres,$(call expand_subsys, $(filter-out
$(top_builddir)/src/timezone/objfiles.txt, $(SUBDIROBJS))))
endif
-install-bin: postgres $(POSTGRES_IMP) installdirs
+install-bin: postgres installdirs
$(INSTALL_PROGRAM) postgres$(X) '$(DESTDIR)$(bindir)/postgres$(X)'
-ifeq ($(MAKE_EXPORTS), true)
- $(INSTALL_DATA) $(POSTGRES_IMP) '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
- $(INSTALL_PROGRAM) $(MKLDEXPORT)
'$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)/mkldexport.sh'
-endif
.PHONY: install-bin
@@ -239,20 +235,12 @@ ifeq ($(MAKE_DLL), true)
$(MKDIR_P) '$(DESTDIR)$(libdir)'
endif
endif
-ifeq ($(MAKE_EXPORTS), true)
- $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
- $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)'
-endif
##########################################################################
uninstall:
rm -f '$(DESTDIR)$(bindir)/postgres$(X)'
-ifeq ($(MAKE_EXPORTS), true)
- rm -f '$(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)'
- rm -f '$(DESTDIR)$(pgxsdir)/$(MKLDEXPORT_DIR)/mkldexport.sh'
-endif
ifeq ($(PORTNAME), cygwin)
ifeq ($(MAKE_DLL), true)
rm -f '$(DESTDIR)$(libdir)/libpostgres.a'
@@ -277,7 +265,7 @@ endif
##########################################################################
clean:
- rm -f $(LOCALOBJS) postgres$(X) $(POSTGRES_IMP)
+ rm -f $(LOCALOBJS) postgres$(X)
ifeq ($(PORTNAME), cygwin)
rm -f postgres.dll libpostgres.a
endif
--
2.52.0