summaryrefslogtreecommitdiff
path: root/Ports/python3
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-07-10 00:20:34 +0100
committerLinus Groh <mail@linusgroh.de>2021-07-10 11:13:02 +0100
commit96331d7d87c0ec16740426c4f1c9845b56243fe8 (patch)
tree5b03beb09ef6494439c1af5cb70c1ce0adbf7978 /Ports/python3
parent821b75299381e498d3d75f665a722d58af26bf9c (diff)
downloadserenity-96331d7d87c0ec16740426c4f1c9845b56243fe8.zip
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.
Diffstat (limited to 'Ports/python3')
-rwxr-xr-xPorts/python3/package.sh1
1 files changed, 1 insertions, 0 deletions
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() {