mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Added build config to get python.com
Modules/Setup and Modules/Setup.local contain the build recipes for various extensions, wrote a custom script to translate them for python.mk. Modules/config.c needs to be changed if any extensions are removed or added. Most of the source modifications are for missing headers or compile time build vars like ABIFLAGS. Created separate mk files for the C extensions and the Python stdlib. Can use find for adding the python files to the APE ZIP store, but right now necessary files are just hardcoded. python.com loads but some build configs are still missing (showing 1 Jan 1970 as time of compilation).
This commit is contained in:
parent
5ef64dbcdb
commit
98f330b764
45 changed files with 2482 additions and 45 deletions
20
third_party/python/Modules/socketmodule.c
vendored
20
third_party/python/Modules/socketmodule.c
vendored
|
@ -265,7 +265,8 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
|
|||
#endif
|
||||
|
||||
#define HAVE_INET_PTON
|
||||
#include <netdb.h>
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/dns/dns.h"
|
||||
#endif
|
||||
|
||||
/* Irix 6.5 fails to define this variable at all. This is needed
|
||||
|
@ -297,9 +298,24 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
|
|||
#ifndef MS_WINDOWS
|
||||
|
||||
/* Non-MS WINDOWS includes */
|
||||
# include <netdb.h>
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
#include "libc/sysv/consts/inaddr.h"
|
||||
#include "libc/sysv/consts/sol.h"
|
||||
#include "libc/sysv/consts/so.h"
|
||||
#include "libc/dns/dns.h"
|
||||
#include "libc/dns/ent.h"
|
||||
# include <unistd.h>
|
||||
|
||||
#ifdef AF_NETLINK
|
||||
#undef AF_NETLINK
|
||||
#endif
|
||||
|
||||
#ifdef AF_CAN
|
||||
#undef AF_CAN
|
||||
#endif
|
||||
|
||||
/* Headers needed for inet_ntoa() and inet_addr() */
|
||||
# include <arpa/inet.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue