Skip to content

Commit 09e7bb8

Browse files
committed
external_deps: disable -fpic when building nettle, we already use -fPIC
This avoids this error when linking the linux-arm64 engine: libnettle.a(buffer-init.o): in function `nettle_buffer_init': (.text+0x8): relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `nettle_realloc' defined in .text section in libnettle.a(realloc.o) /usr/aarch64-linux-gnu/bin/ld: (.text+0x8): warning: too many GOT entries for -fpic, please recompile with -fPIC
1 parent 353f816 commit 09e7bb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

external_deps/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ build_nettle() {
370370
cd "${dir_name}"
371371

372372
configure_build \
373-
--disable-fat
373+
--disable-fat \
374+
--disable-pic
374375
}
375376

376377
# Build cURL

0 commit comments

Comments
 (0)