1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

Ports: Get Python's --build value from config.guess

This commit is contained in:
Linus Groh 2021-04-01 18:33:22 +02:00 committed by Andreas Kling
parent 86ecbd809f
commit 4e2d4b193a

View file

@ -16,15 +16,16 @@ auth_opts="Python-${version}.tar.xz.asc Python-${version}.tar.xz"
# modules build at the moment even with those available, so it's pointless. # modules build at the moment even with those available, so it's pointless.
depends="libffi zlib" depends="libffi zlib"
# FIXME: the --build value is detected correctly by the configure script (via config.guess in the Python source root),
# but still needs to be set explicitly when cross compiling. Figure out how to not hardcode this.
BUILD="x86_64-pc-linux-gnu"
# FIXME: --enable-optimizations results in lots of __gcov_* linker errors # FIXME: --enable-optimizations results in lots of __gcov_* linker errors
configopts="--build=${BUILD} --without-ensurepip ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no" configopts="--without-ensurepip ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no"
export BLDSHARED="${CC} -shared" export BLDSHARED="${CC} -shared"
pre_configure() {
build="$("${workdir}/config.guess")" # e.g. 'x86_64-pc-linux-gnu'
configopts="${configopts} --build=${build}"
}
post_configure() { post_configure() {
run cp "${SERENITY_ROOT}/Ports/${port}/Setup.local" "Modules/Setup.local" run cp "${SERENITY_ROOT}/Ports/${port}/Setup.local" "Modules/Setup.local"
} }