classpath: Fix build with aarch64
PATCH 1/1 classpath: Fix build with aarch64
Fixes:
| In file included from ../../../classpath-0.99/native/fdlibm/fdlibm.h:36, | from ../../../classpath-0.99/native/fdlibm/e_exp.c:76: | ../../../classpath-0.99/native/fdlibm/ieeefp.h:163:2: error: #error Endianess not declared!! | #error Endianess not declared!! | ^~~~~ | In file included from ../../classpath-0.99/native/fdlibm/fdlibm.h:40,
Signed-off-by Ricardo Ribalda Delgado <[email protected]>
--- .../classpath/classpath-0.99/aarch64.patch | 19 +++++++++++++++++++ recipes-core/classpath/classpath_0.99.bb | 1 + 2 files changed, 20 insertions(+) create mode 100644 recipes-core/classpath/classpath-0.99/aarch64.patch
recipes-core/classpath/classpath-0.99/aarch64.patch new file +19 -0
@@ -0,0 +1,19 @@ +Upstream-Status: Inappropriate [upstream is dead] + +Signed-off-by: Ricardo Ribalda <[email protected]> + +diff --git a/native/fdlibm/ieeefp.h b/native/fdlibm/ieeefp.h +index c230bbb..700dd3a 100644 +--- a/native/fdlibm/ieeefp.h ++++ b/native/fdlibm/ieeefp.h +@@ -158,6 +158,10 @@ + #define __IEEE_BIG_ENDIAN + #endif + ++#ifdef __aarch64__ ++#define __IEEE_LITTLE_ENDIAN ++#endif ++ + #ifndef __IEEE_BIG_ENDIAN + #ifndef __IEEE_LITTLE_ENDIAN + #error Endianess not declared!!
recipes-core/classpath/classpath_0.99.bb +1 -0
@@ -14,6 +14,7 @@ SRC_URI += " \ file://toolwrapper-exithook.patch \ file://use_libdir.patch \ file://freetype2.patch \ + file://aarch64.patch \ " SRC_URI[md5sum] = "0ae1571249172acd82488724a3b8acb4"
Signature · 1 line
2.20.1
Hi Ricardo,
thanks for the patch!
I'll add it to my tests asap and give you feedback.
Nonetheless, to me (from the commit messages) it's not clear if this patch fixes a problem when compiling for aarch64 or on aarch64. Could you please describe your change a little more in the commit message and send a v2? Keeping the "Fixes:" is of course fine!
regards;Richard.L
Quoted 53 lines · Ricardo Ribalda Delgado
Fixes:
| In file included from ../../../classpath-0.99/native/fdlibm/fdlibm.h:36, | from ../../../classpath-0.99/native/fdlibm/e_exp.c:76: | ../../../classpath-0.99/native/fdlibm/ieeefp.h:163:2: error: #error Endianess not declared!! | #error Endianess not declared!! | ^~~~~ | In file included from ../../classpath-0.99/native/fdlibm/fdlibm.h:40,Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- .../classpath/classpath-0.99/aarch64.patch | 19 +++++++++++++++++++ recipes-core/classpath/classpath_0.99.bb | 1 + 2 files changed, 20 insertions(+)create mode 100644
recipes-core/classpath/classpath-0.99/aarch64.patchrecipes-core/classpath/classpath-0.99/aarch64.patch new file +19
-0@@ -0,0 +1,19 @@ +Upstream-Status: Inappropriate [upstream is dead] + +Signed-off-by: Ricardo Ribalda <[email protected]> + +diff --git a/native/fdlibm/ieeefp.h b/native/fdlibm/ieeefp.h +index c230bbb..700dd3a 100644 +--- a/native/fdlibm/ieeefp.h ++++ b/native/fdlibm/ieeefp.h +@@ -158,6 +158,10 @@ + #define __IEEE_BIG_ENDIAN + #endif + ++#ifdef __aarch64__ ++#define __IEEE_LITTLE_ENDIAN ++#endif ++ + #ifndef __IEEE_BIG_ENDIAN + #ifndef __IEEE_LITTLE_ENDIAN + #error Endianess not declared!!recipes-core/classpath/classpath_0.99.bb +1
-0@@ -14,6 +14,7 @@ SRC_URI += " \ file://toolwrapper-exithook.patch \ file://use_libdir.patch \ file://freetype2.patch \ + file://aarch64.patch \ " SRC_URI[md5sum] = "0ae1571249172acd82488724a3b8acb4"