Cython: Compile a Standalone Static Executable
问题 I'm trying to compile an executable (ELF file) that does not use a dynamic loader. I used Cython to compile Python to C: cython3 -3 test.py --embed Then gcc test.c -otest $(pkg-config --libs --cflags python3) to compile C generated file. Now I'd like to compile test.c in a static executable. Usually I use -static flag, but here it return collect2: error: ld returned 1 exit status . How can I do? EDIT 1: Not the full messge becouse body is limited to 30000 chars a long list of warnings and