Fix regression with Python linker eaxmples

We can once again create 2mb statically-linked Python binaries:

    $ make -j8 m=tiny o/tiny/examples/pyapp/pyapp.com
    $ ls -hal o/tiny/examples/pyapp/pyapp.com
    -rwxr-xr-x 1 jart jart 2.1M May  1 14:04 o/tiny/examples/pyapp/pyapp.com
    $ o/tiny/examples/pyapp/pyapp.com
    cosmopolitan is cool!

The regression was caused by Python thread support in b15f9eb58
This commit is contained in:
Justine Tunney 2023-05-01 14:05:04 -07:00
parent fc82f77a46
commit 12438cce16
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 3 additions and 7 deletions

View file

@ -1519,8 +1519,3 @@ PyInit__thread(void)
PyThread_init_thread();
return m;
}
_Section(".rodata.pytab.1") const struct _inittab _PyImport_Inittab__thread = {
"_thread",
PyInit__thread,
};