mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 04:20:28 +00:00
Ports: Get Python's --build value from config.guess
This commit is contained in:
parent
86ecbd809f
commit
4e2d4b193a
Notes:
sideshowbarker
2024-07-18 20:55:24 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4e2d4b193aa Pull-request: https://github.com/SerenityOS/serenity/pull/6060
1 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
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
|
||||
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"
|
||||
|
||||
pre_configure() {
|
||||
build="$("${workdir}/config.guess")" # e.g. 'x86_64-pc-linux-gnu'
|
||||
configopts="${configopts} --build=${build}"
|
||||
}
|
||||
|
||||
post_configure() {
|
||||
run cp "${SERENITY_ROOT}/Ports/${port}/Setup.local" "Modules/Setup.local"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue