mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Ports: Build most python3 extension modules statically
Attempting to import C-extensions (lib-dynload/*.so) currently asserts in the dynamic loader - let's just build them statically instead for the time being. This makes a large number of modules available for use and the port a lot more functional! :^)
This commit is contained in:
parent
92ca22a5e1
commit
404dab5383
4 changed files with 82 additions and 1 deletions
|
@ -25,6 +25,10 @@ configopts="--build=${BUILD} --without-ensurepip ac_cv_file__dev_ptmx=no ac_cv_f
|
|||
|
||||
export BLDSHARED="${CC} -shared"
|
||||
|
||||
post_configure() {
|
||||
run cp "${SERENITY_ROOT}/Ports/${port}/Setup.local" "Modules/Setup.local"
|
||||
}
|
||||
|
||||
if [ -x "$(command -v python3)" ]; then
|
||||
# Check if major and minor version of python3 are matching
|
||||
if ! python3 -c "import sys; major, minor, _ = map(int, '${PYTHON_VERSION}'.split('.')); sys.exit(not (sys.version_info.major == major and sys.version_info.minor == minor))"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue