Can I customize the compile options for GCC in Nuitka (e.g. -O2
, -static
)?
Update: I read the user manual but found nothing. I also checked the command line options of nuitka and found --generate-c-only
and --show-scons
. Maybe these can help me build the executables, but I don't know how to complete the rest of the process.
Can I customize the compile options for GCC in Nuitka (e.g. -O2
, -static
)?
Update: I read the user manual but found nothing. I also checked the command line options of nuitka and found --generate-c-only
and --show-scons
. Maybe these can help me build the executables, but I don't know how to complete the rest of the process.
1 Answer
Reset to default 1From the user manual:
Providing extra Options to Nuitka C compilation
Nuitka will apply values from the environment variables
CCFLAGS
,LDFLAGS
during the compilation on top of what it determines to be necessary. Beware, of course, that this is only useful if you know what you are doing, so should this pose issues, raise them only with perfect information.
Maybe this could be helpful!