diff options
author | Linus Groh <mail@linusgroh.de> | 2021-02-01 19:46:43 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-02 16:53:06 +0100 |
commit | de676bbf9781e0c5c181357697a7c07b6d73476d (patch) | |
tree | 5ce5cacee48d2eba8bcae75f33eb8cefbb736148 /Ports/python3 | |
parent | 404dab5383c5b4ac86b0c18432877cba386f3f26 (diff) | |
download | serenity-de676bbf9781e0c5c181357697a7c07b6d73476d.zip |
Ports: Build python3 with zlib
With the right include paths and linker flags, the _zlib module now
builds & works. :^)
Diffstat (limited to 'Ports/python3')
-rw-r--r-- | Ports/python3/Setup.local | 1 | ||||
-rwxr-xr-x | Ports/python3/package.sh | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Ports/python3/Setup.local b/Ports/python3/Setup.local index 0c94060ed6..2f7a988157 100644 --- a/Ports/python3/Setup.local +++ b/Ports/python3/Setup.local @@ -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... diff --git a/Ports/python3/package.sh b/Ports/python3/package.sh index 638d9bd56f..f1d97c650f 100755 --- a/Ports/python3/package.sh +++ b/Ports/python3/package.sh @@ -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. |