All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/8] package/flatbuffers: build position independent code
@ 2023-01-24  9:22 James Hilliard
  2023-01-24  9:22 ` [Buildroot] [PATCH v3 2/8] package/cpuinfo: new package James Hilliard
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: James Hilliard @ 2023-01-24  9:22 UTC (permalink / raw)
  To: buildroot
  Cc: Stefan Hager, James Hilliard, Samuel Martin, Fabrice Fontaine,
	Thomas Petazzoni

The upcoming tensorflow-lite package requires flatbuffers to be
built with position independent code.

Fixes:
/home/buildroot/buildroot/output/per-package/tensorflow-lite/host/bin/../lib/gcc/aarch64-buildroot-linux-gnu/11.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: /home/buildroot/buildroot/output/per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libflatbuffers.a(util.cpp.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN11flatbuffers11CharToUpperEc' which may bind externally can not be used when making a shared object; recompile with -fPIC

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/flatbuffers/flatbuffers.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/flatbuffers/flatbuffers.mk b/package/flatbuffers/flatbuffers.mk
index 9d286bf9e1..487d85ee1f 100644
--- a/package/flatbuffers/flatbuffers.mk
+++ b/package/flatbuffers/flatbuffers.mk
@@ -14,6 +14,7 @@ FLATBUFFERS_DEPENDENCIES = host-flatbuffers
 
 FLATBUFFERS_CONF_OPTS += \
 	-DCMAKE_CXX_FLAGS="-std=c++11" \
+	-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
 	-DFLATBUFFERS_BUILD_TESTS=OFF \
 	-DFLATBUFFERS_FLATC_EXECUTABLE=$(HOST_DIR)/bin/flatc
 
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-01-27  8:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-24  9:22 [Buildroot] [PATCH v3 1/8] package/flatbuffers: build position independent code James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 2/8] package/cpuinfo: new package James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 3/8] package/ruy: " James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 4/8] package/gemmlowp: " James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 5/8] package/neon-2-sse: " James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 6/8] package/fft2d: " James Hilliard
2023-01-24  9:37   ` Baruch Siach via buildroot
2023-01-24  9:22 ` [Buildroot] [PATCH v3 7/8] package/farmhash: " James Hilliard
2023-01-24  9:22 ` [Buildroot] [PATCH v3 8/8] package/tensorflow-lite: " James Hilliard
2023-01-27  8:40   ` Lang Daniel via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.