postgresql: disable PIC 16444/head
authorMichal Vasilek <michal.vasilek@nic.cz>
Tue, 24 Aug 2021 10:43:39 +0000 (12:43 +0200)
committerMichal Vasilek <michal.vasilek@nic.cz>
Tue, 24 Aug 2021 10:48:19 +0000 (12:48 +0200)
commit4b091361ef48a06b40a9f3cf02bd23ec22d98407
tree9394d8107dbb60e7dc283db9ad2ccb45ac599b46
parent5982af9ed5be16f9dd275b0c23a5b09dfb8b50e2
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 <michal.vasilek@nic.cz>
libs/postgresql/Makefile