postgresql: fix missing symbols at runtime
authorDaniel F. Dickinson <redacted>
Sat, 13 Dec 2025 06:29:36 +0000 (01:29 -0500)
committerHannu Nyman <redacted>
Sun, 14 Dec 2025 07:50:40 +0000 (08:50 +0100)
Fixes pgsql-server: the setup fails for any folder
Fixes #27228

Sets postgresql-specific configure flags that configure cannot run-test
to determine their value. This fixes improperly linked files that
prevent database initialization (at least) from working on the device.

Signed-off-by: Daniel F. Dickinson <redacted>
libs/postgresql/Makefile

index 6cdbab9cde2229574ccebdfd9b4cc5e92ebbb65e..df49f1e6e3306624fd60996784a69df81a3287bd 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=postgresql
 PKG_VERSION:=17.5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
 PKG_LICENSE:=PostgreSQL
 PKG_CPE_ID:=cpe:/a:postgresql:postgresql
@@ -119,7 +119,9 @@ PGSQL_CONFIG_VARS:= \
        pgac_cv_snprintf_size_t_support=yes \
        USE_DEV_URANDOM=1 \
        ac_cv_file__dev_urandom="/dev/urandom" \
-       ZIC=zic
+       ZIC=zic \
+       pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic=yes \
+       pgac_cv_prog_cc_LDFLAGS__Wl___as_needed=yes
 
 TARGET_CONFIGURE_OPTS+=$(PGSQL_CONFIG_VARS)
 
git clone https://git.99rst.org/PROJECT