From 14b3a5ccb2b4fc0da3dc1e08e5a68d45ba4adc83 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 7 Jan 2025 16:20:02 -0800 Subject: pocketpy: Add pic options to cflags Ensures that PIC is always used to build Fixes error: relocation R_386_PC32 cannot be used against symbol 'LZ4_compress_fast_extState'; recompile with -fPIC Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-oe') diff --git a/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb index 3544247b8c..3130a193d2 100644 --- a/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb +++ b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb @@ -20,6 +20,8 @@ S = "${WORKDIR}/git" inherit cmake +CFLAGS += "-fPIC" + do_install() { install -d ${D}${libdir} install -m 0644 ${B}/libpocketpy.so ${D}${libdir}/ -- cgit v1.2.3-54-g00ecf