File tree 3 files changed +27
-16
lines changed
3 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,13 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
80
80
fi
81
81
fi
82
82
83
+ # disable readelf check when cross-compiling on older Python versions
84
+ if [ -n " ${CROSS_COMPILING} " ]; then
85
+ if [ -n " ${PYTHON_MEETS_MAXIMUM_VERSION_3_11} " ]; then
86
+ patch -p1 -i ${ROOT} /patch-cross-readelf.patch
87
+ fi
88
+ fi
89
+
83
90
# This patch is slightly different on Python 3.10+.
84
91
if [ -n " ${PYTHON_MEETS_MINIMUM_VERSION_3_10} " ]; then
85
92
patch -p1 -i ${ROOT} /patch-xopen-source-ios.patch
Original file line number Diff line number Diff line change @@ -71,22 +71,6 @@ index c62a565eb6..7e5d34632c 100644
71
71
LDLIBRARY='libpython$(LDVERSION).dylib'
72
72
BLDLIBRARY='-L. -lpython$(LDVERSION)'
73
73
RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
74
- @@ -1626,15 +1665,6 @@ then
75
- fi
76
-
77
- AC_CHECK_TOOLS([READELF], [readelf], [:])
78
- - if test "$cross_compiling" = yes; then
79
- - case "$READELF" in
80
- - readelf|:)
81
- - AC_MSG_ERROR([readelf for the host is required for cross builds])
82
- - ;;
83
- - esac
84
- - fi
85
- - AC_SUBST(READELF)
86
- -
87
-
88
- case $MACHDEP in
89
- hp*|HP*)
90
74
@@ -3173,6 +3203,11 @@ then
91
75
Linux*|GNU*|QNX*|VxWorks*|Haiku*)
92
76
LDSHARED='$(CC) -shared'
Original file line number Diff line number Diff line change
1
+ diff --git a/configure.ac b/configure.ac
2
+ index c62a565eb6..7e5d34632c 100644
3
+ --- a/configure.ac
4
+ +++ b/configure.ac
5
+ @@ -1626,15 +1665,6 @@ then
6
+ fi
7
+
8
+ AC_CHECK_TOOLS([READELF], [readelf], [:])
9
+ - if test "$cross_compiling" = yes; then
10
+ - case "$READELF" in
11
+ - readelf|:)
12
+ - AC_MSG_ERROR([readelf for the host is required for cross builds])
13
+ - ;;
14
+ - esac
15
+ - fi
16
+ - AC_SUBST(READELF)
17
+ -
18
+
19
+ case $MACHDEP in
20
+ hp*|HP*)
You can’t perform that action at this time.
0 commit comments