libcap: build with -fPIC

systemd v247 with updated libcap 2.54 fails to build with:
  libcap.a(cap_proc.o): requires unsupported dynamic reloc
  R_ARM_MOVW_ABS_NC; recompile with -fPIC

This change occured between 2.53 and 2.54 of libcap:
- https://sites.google.com/site/fullycapable/release-notes-for-libcap#h.okdn4r9me10
This commit is contained in:
heitbaum 2021-08-29 18:09:31 +10:00
parent cde2407387
commit de3b8a5a77

View File

@ -12,6 +12,7 @@ PKG_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${PK
PKG_DEPENDS_HOST="ccache:host"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="A library for getting and setting POSIX.1e capabilities."
PKG_BUILD_FLAGS="+pic"
post_unpack() {
mkdir -p ${PKG_BUILD}/.${HOST_NAME}