From 2a2ed3efcd028b0ebd78fa83c04c9123d7d274fd Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Sun, 10 Mar 2024 03:55:17 +0100
Subject: python3: fix endian detection

---
 package/python3/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'package/python3')

diff --git a/package/python3/Makefile b/package/python3/Makefile
index 043ce5bf7..060ca4003 100644
--- a/package/python3/Makefile
+++ b/package/python3/Makefile
@@ -89,6 +89,12 @@ CONFIGURE_ENV+=		ac_cv_have_long_long_format=yes \
 			ac_cv_file__dev_ptc=no \
 			ac_cv_header_libintl_h=no
 
+ifeq ($(ADK_TARGET_BIG_ENDIAN),y)
+CONFIGURE_ENV+=		ax_cv_c_float_words_bigendian=yes
+else
+CONFIGURE_ENV+=		ax_cv_c_float_words_bigendian=no
+endif
+
 python3-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
 	${INSTALL_DIR} ${IDIR_PYTHON3}/usr/bin ${IDIR_PYTHON3}/usr/lib
 	${INSTALL_DIR} ${IDIR_PYTHON3}/usr/lib/python3.11
-- 
cgit v1.2.3