|
273 | 273 | # Always build against libedit instead of the default of readline.
|
274 | 274 | # macOS always uses the system libedit, so no tweaks are needed.
|
275 | 275 | if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
|
276 |
| - # On Linux, we need to add our custom libedit to search paths. |
277 |
| - CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/libedit/include" |
278 |
| - LDFLAGS="${LDFLAGS} -L${TOOLS_PATH}/deps/libedit/lib" |
279 |
| - |
280 | 276 | # CPython 3.10 introduced proper configure support for libedit, so add configure
|
281 | 277 | # flag there.
|
282 | 278 | if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_10}" ]; then
|
@@ -605,8 +601,6 @@ tools_path = os.environ["TOOLS_PATH"]
|
605 | 601 | replace_in_all("-I%s/deps/include/ncursesw" % tools_path, "")
|
606 | 602 | replace_in_all("-I%s/deps/include/uuid" % tools_path, "")
|
607 | 603 | replace_in_all("-I%s/deps/include" % tools_path, "")
|
608 |
| -replace_in_all("-I%s/deps/libedit/include" % tools_path, "") |
609 |
| -replace_in_all("-L%s/deps/libedit/lib" % tools_path, "") |
610 | 604 | replace_in_all("-L%s/deps/lib" % tools_path, "")
|
611 | 605 |
|
612 | 606 | EOF
|
@@ -856,10 +850,6 @@ done
|
856 | 850 | mkdir ${ROOT}/out/python/build/lib
|
857 | 851 | cp -av ${TOOLS_PATH}/deps/lib/*.a ${ROOT}/out/python/build/lib/
|
858 | 852 |
|
859 |
| -if [ -d "${TOOLS_PATH}/deps/libedit" ]; then |
860 |
| - cp -av ${TOOLS_PATH}/deps/libedit/lib/*.a ${ROOT}/out/python/build/lib/ |
861 |
| -fi |
862 |
| - |
863 | 853 | # On Apple, Python 3.9+ uses __builtin_available() to sniff for feature
|
864 | 854 | # availability. This symbol is defined by clang_rt, which isn't linked
|
865 | 855 | # by default. When building a static library, one must explicitly link
|
|
0 commit comments