libffi: don't build host shared libs
authorRosen Penev <redacted>
Mon, 18 Oct 2021 08:00:07 +0000 (01:00 -0700)
committerRosen Penev <redacted>
Sat, 23 Oct 2021 01:07:53 +0000 (18:07 -0700)
Avoids rpath hacks.

Add --with-pic. Needed for static library.

Signed-off-by: Rosen Penev <redacted>
libs/libffi/Makefile

index 56c9f5d68ea92fc9a3a3d993dd3ecd3fad1d0bb7..901a4f3a4dbc2a12b9a791815e5df4871352372b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libffi
 PKG_VERSION:=3.4.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/libffi/libffi/tar.gz/v$(PKG_VERSION)?
@@ -48,11 +48,13 @@ between the two languages.
 endef
 
 HOST_CONFIGURE_ARGS += \
+       --disable-shared \
        --disable-debug \
        --disable-docs \
        --disable-multi-os-directory \
        --disable-raw-api \
-       --disable-structs
+       --disable-structs \
+       --with-pic
 
 CONFIGURE_ARGS += \
        --disable-debug \
git clone https://git.99rst.org/PROJECT