Source: polyml
Version: 5.5.2-2
Tags: patch
I was able to build this on arm64 with the attached trivial patch,
though I've done no other testing.
diff -ru polyml-5.5.2.orig/configure.ac polyml-5.5.2/configure.ac
--- polyml-5.5.2.orig/configure.ac
+++ polyml-5.5.2/configure.ac
@@ -408,6 +408,10 @@
AC_DEFINE([HOSTARCHITECTURE_ARM], [1], [Define if the host is an ARM (32 bit)])
polyarch=interpret
;;
+ aarch64*)
+ AC_DEFINE([HOSTARCHITECTURE_AARCH64], [1], [Define if the host is AArch64 (64-bit ARM)])
+ polyarch=interpret
+ ;;
ia64*)
AC_DEFINE([HOSTARCHITECTURE_IA64], [1], [Define if the host is Itanium])
polyarch=interpret
diff -ru polyml-5.5.2.orig/libpolyml/elfexport.cpp polyml-5.5.2/libpolyml/elfexport.cpp
--- polyml-5.5.2.orig/libpolyml/elfexport.cpp
+++ polyml-5.5.2/libpolyml/elfexport.cpp
@@ -339,6 +339,10 @@
directReloc = R_ARM_ABS32;
useRela = false;
fhdr.e_flags = EF_ARM_EABI_VER4;
+#elif defined(HOSTARCHITECTURE_AARCH64)
+ fhdr.e_machine = EM_AARCH64;
+ directReloc = R_AARCH64_ABS64;
+ useRela = true;
#elif defined(HOSTARCHITECTURE_IA64)
fhdr.e_machine = EM_IA_64;
directReloc = R_IA64_DIR64LSB;
--
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers