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

Ports: Build python3 with zlib

With the right include paths and linker flags, the _zlib module now
builds & works. :^)
This commit is contained in:
Linus Groh 2021-02-01 19:46:43 +01:00 committed by Andreas Kling
parent 404dab5383
commit de676bbf97
2 changed files with 3 additions and 2 deletions

View file

@ -64,6 +64,7 @@ syslog syslogmodule.c
unicodedata unicodedata.c
xxlimited xxlimited.c
xxsubtype xxsubtype.c
zlib zlibmodule.c -I$(SERENITY_ROOT)/Build/Root/usr/local/include -L$(SERENITY_ROOT)/Build/Root/usr/local/lib -lz
*disabled*
# Not building, patch Python some more or fix LibC...

View file

@ -12,9 +12,9 @@ auth_type="sig"
auth_import_key="E3FF2839C048B25C084DEBE9B26995E310250568"
auth_opts="Python-${version}.tar.xz.asc Python-${version}.tar.xz"
# We could also add `ncurses`, `openssl`, and `zlib` here, but neither of the _curses, _ssl, and zlib
# We could also add `ncurses`/`termcap` and `openssl` here, but neither of the _curses nor _ssl
# modules build at the moment even with those available, so it's pointless.
depends="libffi"
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.