From 4b091361ef48a06b40a9f3cf02bd23ec22d98407 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 24 Aug 2021 12:43:39 +0200 Subject: [PATCH] postgresql: disable PIC with PIC enabled, build fails with ld: access/gist/gistproc.o: in function `rtree_internal_consistent': gistproc.c:(.text+0x188): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `DirectFunctionCall2Coll' defined in .text section in utils/fmgr/fmgr.o ld: gistproc.c:(.text+0x188): warning: too many GOT entries for -fpic, please recompile with -fPIC ld: final link failed: symbol needs debug section which does not exist collect2: error: ld returned 1 exit status Related-to: 8e9ad7bb5117edea4df08cd9a2de62685103a4b3 Signed-off-by: Michal Vasilek --- libs/postgresql/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index bfedd5cf88..8867c6dee0 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -24,6 +24,7 @@ PKG_FIXUP:=autoreconf PKG_MACRO_PATHS:=config PKG_BUILD_DEPENDS:=postgresql/host PKG_INSTALL:=1 +PKG_ASLR_PIE:=0 include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk -- 2.30.2