Had a bit of trouble building this; I ran with CC=clang in order to maybe get some better debug output, got this:
clang -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/lib -static -fPIC -I/usr/include -DPy_BUILD_CORE -c ./Modules/_testcapimodule.c -o Modules/_testcapimodule.o
./Modules/_testcapimodule.c:1750:9: error: use of undeclared identifier 'PyDateTimeAPI'
if (PyDateTimeAPI) {
^
./Modules/_testcapimodule.c:1762:5: error: use of undeclared identifier 'PyDateTime_IMPORT'
PyDateTime_IMPORT;
^
./Modules/_testcapimodule.c:1763:9: error: use of undeclared identifier 'PyDateTimeAPI'
if (PyDateTimeAPI)
^
3 errors generated.
I was able to static compile using a hack I found here: http://bugs.python.org/issue19348
Seems to have worked; I was able to run the built python executable and use the python shell with a few tests, just a few print() and such.
Had a bit of trouble building this; I ran with
CC=clang
in order to maybe get some better debug output, got this:I was able to static compile using a hack I found here: http://bugs.python.org/issue19348 Seems to have worked; I was able to run the built python executable and use the python shell with a few tests, just a few print() and such.