From cfb33ccd9323f94d89c5f5ad6fd958262628578a Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 20 Mar 2019 00:57:34 +0200 Subject: [PATCH] stfl: fix compilation error Error was: bin/ld.real: error: public.o: requires unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC --- packages/stfl/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stfl/build.sh b/packages/stfl/build.sh index 1eed4c35d..a79913954 100644 --- a/packages/stfl/build.sh +++ b/packages/stfl/build.sh @@ -10,6 +10,6 @@ TERMUX_PKG_BUILD_IN_SRC=yes termux_step_configure() { CC+=" $CPPFLAGS" - CFLAGS+=" -I. -D_XOPEN_SOURCE_EXTENDED=1" + CFLAGS+=" -fPIC -I. -D_XOPEN_SOURCE_EXTENDED=1" LDFLAGS+=" -lncursesw -liconv" }