extra/ffcall to 2.4-2

This commit is contained in:
Kevin Mihelich 2022-04-24 16:42:41 +00:00
parent efcde16c18
commit b240934304

View file

@ -6,11 +6,12 @@
pkgname=ffcall
pkgver=2.4
pkgrel=1
pkgrel=2
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
arch=('x86_64')
url="https://www.gnu.org/software/libffcall/"
license=('GPL2')
depends=('glibc')
options=('!makeflags' 'staticlibs')
source=(https://ftp.gnu.org/gnu/libffcall/libffcall-${pkgver}.tar.gz)
sha256sums=('8ef69921dbdc06bc5bb90513622637a7b83a71f31f5ba377be9d8fd8f57912c2')
@ -18,6 +19,7 @@ sha256sums=('8ef69921dbdc06bc5bb90513622637a7b83a71f31f5ba377be9d8fd8f57912c2')
build() {
cd "${srcdir}/lib${pkgname}-${pkgver}"
[ "$CARCH" = "x86_64" -o "$CARCH" = "aarch64" -o "$CARCH" = "armv7h" ] && CONFIGFLAG="--with-pic"
CFLAGS+=" -ffat-lto-objects" \
./configure --prefix=/usr --mandir=/usr/share/man $CONFIGFLAG
make
}