summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-10 03:55:17 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-10 03:55:40 +0100
commit2a2ed3efcd028b0ebd78fa83c04c9123d7d274fd (patch)
treec140863a9bd4f50f76558818bf444366e38a662e
parente235aa99a1a4914f0a1921be637f1fd6c3b66cec (diff)
python3: fix endian detection
-rw-r--r--package/python3/Makefile6
1 files changed, 6 insertions, 0 deletions
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