From 96331d7d87c0ec16740426c4f1c9845b56243fe8 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 10 Jul 2021 00:20:34 +0100 Subject: [PATCH] Ports: Export CC with added --sysroot for building Python This is used in the setup.py file when adding include and lib paths to the list when crosscompiling, if it's not found in any of the checked environment variables they don't get added. --- Ports/python3/package.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Ports/python3/package.sh b/Ports/python3/package.sh index 75ead06242..048410e40a 100755 --- a/Ports/python3/package.sh +++ b/Ports/python3/package.sh @@ -19,6 +19,7 @@ depends="libffi zlib" # FIXME: --enable-optimizations results in lots of __gcov_* linker errors configopts="--disable-ipv6 --without-ensurepip ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no" +export CC="${CC} --sysroot=${SERENITY_INSTALL_ROOT}" export BLDSHARED="${CC} -shared" pre_configure() {