lang/sablevm-classpath: Set the endianness for aargh64.

This commit is contained in:
dholland 2021-12-27 01:23:28 +00:00
parent 2ae60b5783
commit 3266aaf0ad
2 changed files with 19 additions and 6 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.10 2021/10/26 10:51:54 nia Exp $
$NetBSD: distinfo,v 1.11 2021/12/27 01:23:28 dholland Exp $
BLAKE2s (sablevm-classpath-1.13.tar.gz) = a044599b20b35c879ef7f576c1cf09cd63d22f53e7bdea9cf54e4e7226b83fde
SHA512 (sablevm-classpath-1.13.tar.gz) = 2e41ca5fe1b4cdb892d8cec6367774ec8a748bc1cf19c660d8b6a7ace4bc3462d7805d40392ef540f3561f2a97ceb317ea4115334eff7a0518d585d8cae84224
@ -7,5 +7,4 @@ SHA1 (patch-aa) = b8b0a1e8f3a21cb6e26700714f146b44c2bafe71
SHA1 (patch-ab) = f1ebd89f5f66170d769e678cd55792d806ebbeab
SHA1 (patch-ac) = 59fd252a65c92a9f318ba4140227da855fb1e3c4
SHA1 (patch-ad) = 1287035dbc2861e7b9a4ddbda2898cc58363ce75
SHA1 (patch-native_fdlibm_ieeefp_h) = 70eeec657973b11ae8ce38901a543200a195ede9
SHA1 (patch-native_jni_gtk-peer_gnu__java__awt__peer__gtk__GdkTextLayout.c) = 7e7eb5b7d5df5313961b67ad3620ac735345517f
SHA1 (patch-native_fdlibm_ieeefp_h) = 1ac088d7a5d7ea793d7a34b5ddb4d162b7228a1a

View file

@ -1,10 +1,24 @@
$NetBSD: patch-native_fdlibm_ieeefp_h,v 1.1 2012/04/08 05:47:30 dholland Exp $
$NetBSD: patch-native_fdlibm_ieeefp_h,v 1.2 2021/12/27 01:23:29 dholland Exp $
Fix AArch64 (64-bit ARM) build.
Fix NetBSD PPC build, from Magnus Henoch in PR 34787.
--- native/fdlibm/ieeefp.h~ 2005-12-07 17:54:35.000000000 +0000
--- native/fdlibm/ieeefp.h.orig 2005-12-07 17:54:35.000000000 +0000
+++ native/fdlibm/ieeefp.h
@@ -123,9 +123,9 @@
@@ -27,6 +27,11 @@
#endif
#endif
+#if defined(__aarch64__) || defined(__AARCH64__)
+/* 64-bit ARM */
+#define __IEEE_LITTLE_ENDIAN
+#endif
+
#ifdef __hppa__
#define __IEEE_BIG_ENDIAN
#endif
@@ -123,9 +128,9 @@
#define __IEEE_LITTLE_ENDIAN
#endif