-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply readelf patch for cross-compiling on older Python versions (#452)
Linux cross-compiles are failing on `main` @ 01cfc3b due to `readelf` missing. We drop this check as part of the Apple cross compilation patch but since #443 we no longer apply that patch on Linux. This moves the patch out into a separate file and applies it when cross-compiling on Python <=3.12 where it is relevant.
- Loading branch information
Showing
3 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index c62a565eb6..7e5d34632c 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -1626,15 +1665,6 @@ then | ||
fi | ||
|
||
AC_CHECK_TOOLS([READELF], [readelf], [:]) | ||
-if test "$cross_compiling" = yes; then | ||
- case "$READELF" in | ||
- readelf|:) | ||
- AC_MSG_ERROR([readelf for the host is required for cross builds]) | ||
- ;; | ||
- esac | ||
-fi | ||
-AC_SUBST(READELF) | ||
- | ||
|
||
case $MACHDEP in | ||
hp*|HP*) |