ffcall: fix textrels on ppc32, fix ppc64 BE
This commit is contained in:
parent
f242df40ee
commit
5b5a7cdbad
2 changed files with 1705 additions and 0 deletions
1687
srcpkgs/ffcall/files/ppc64-be.patch
Normal file
1687
srcpkgs/ffcall/files/ppc64-be.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -18,6 +18,24 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
configure_args+=" ffcall_cv_malloc_mprotect_can_exec=yes"
|
configure_args+=" ffcall_cv_malloc_mprotect_can_exec=yes"
|
||||||
fi
|
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() {
|
do_install() {
|
||||||
make DESTDIR=${DESTDIR} htmldir=/usr/share/doc/ffcall install
|
make DESTDIR=${DESTDIR} htmldir=/usr/share/doc/ffcall install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue