ffcall: fix textrels on ppc32, fix ppc64 BE

This commit is contained in:
q66 2020-05-12 01:33:31 +02:00
parent f242df40ee
commit 5b5a7cdbad
2 changed files with 1705 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,24 @@ if [ "$CROSS_BUILD" ]; then
configure_args+=" ffcall_cv_malloc_mprotect_can_exec=yes"
fi
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*)
nopie=yes
CFLAGS="-fPIC"
;;
esac
post_extract() {
case "$XBPS_TARGET_MACHINE" in
ppc64le*) ;;
ppc64*)
msg_normal "Patching ppc64 BE ELFv2...\n"
patch -sNp1 -i ${FILESDIR}/ppc64-be.patch
;;
esac
}
do_install() {
make DESTDIR=${DESTDIR} htmldir=/usr/share/doc/ffcall install
}