Skip to content

Commit

Permalink
pocketpy: Add pic options to cflags
Browse files Browse the repository at this point in the history
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 <raj.khem@gmail.com>
  • Loading branch information
kraj committed Jan 8, 2025
1 parent 9582c1e commit c124fb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta-oe/recipes-devtools/pocketpy/pocketpy_2.0.4.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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}/
Expand Down

0 comments on commit c124fb8

Please sign in to comment.