From ca5929471c40a031592a9fa8a20272e9b06b13be Mon Sep 17 00:00:00 2001 From: Suman Michael Date: Fri, 15 May 2026 15:34:29 +0530 Subject: [PATCH] Fix Makefile to link against OpenSSL on PGXS PGXS only applies SHLIB_LINK to MODULE_big builds; with MODULES the flag is silently ignored, so -lssl -lcrypto never reached the link line and the build failed with undefined OpenSSL symbols. Switch from MODULES to MODULE_big (+ OBJS) so SHLIB_LINK is honored. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f46d78f..e90790b 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,8 @@ # Tests: # make installcheck -MODULES = plpgsql_wrap +MODULE_big = plpgsql_wrap +OBJS = plpgsql_wrap.o EXTENSION = plpgsql_wrap DATA = $(wildcard updates/*--*.sql) $(wildcard sql/*.sql) DOCS = README.md