mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
mpir: fix build on ppc64, fix runtime on ppc32
This commit is contained in:
parent
c1c8c051b2
commit
0aa0e33e37
1 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,19 @@ homepage="http://mpir.org"
|
|||
distfiles="${homepage}/mpir-${version}.tar.bz2"
|
||||
checksum=52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb
|
||||
|
||||
# prevent elfv1 asm code from being used (fails to link)
|
||||
# and on ppc32, avoid textrels (assembly code is used)
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc64*)
|
||||
export ABI=mode64
|
||||
export MPN_PATH=generic
|
||||
;;
|
||||
ppc*)
|
||||
nopie=yes
|
||||
CFLAGS="-fPIC"
|
||||
;;
|
||||
esac
|
||||
|
||||
mpir-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
|
|
Loading…
Add table
Reference in a new issue