From c8ebf9c0fb52ebf76b65a5f22cab788e7a37a24b Mon Sep 17 00:00:00 2001 From: Aditya Kamath Date: Tue, 17 Feb 2026 10:25:27 -0600 Subject: [PATCH v6 8/8] Add "/opt/freeware/lib" path to Makefile.aix This is needed to allow test cases to run. Otherwise we get: exec(): 0509-036 Cannot load program /home/post_guy/postgres_latest/postgres/tmp_install/usr/local/pgsql/bin/postgres because of the following errors: 0509-150 Dependent module libicuuc73.a(libicuuc73.so) could not be loaded. 0509-022 Cannot load module libicuuc73.a(libicuuc73.so). 0509-026 System error: A file or directory in the path name does not exist. Which is because in the blibpath "/opt/freeware/lib" is not there and binaries cannot find the open source linraries in AIX which will always be placed in "/opt/freeware/lib". --- src/makefiles/Makefile.aix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix index a7dee8a76b4..ecba693b6a9 100644 --- a/src/makefiles/Makefile.aix +++ b/src/makefiles/Makefile.aix @@ -3,7 +3,7 @@ MAKE_EXPORTS= true # -blibpath must contain ALL directories where we should look for libraries -libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/usr/lib:/lib +libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/opt/freeware/lib:/usr/lib:/lib # when building with gcc, need to make sure that libgcc can be found ifeq ($(GCC), yes) -- 2.51.2