audit: disable python when cross-compiling
To support this theoretically, the configure script upstream would need to a) stop using PATH for finding python-config exclusively and allow passing an absolute path to it and b) cease using the distutils module for configuration purposes which of course requires running the host python interpreter which is not possible in the cross case.
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
runCommand,
|
||||
autoreconfHook,
|
||||
autoconf, automake, libtool,
|
||||
enablePython ? true, python3, swig,
|
||||
# Enabling python support while cross compiling would be possible, but
|
||||
# the configure script tries executing python to gather info instead of
|
||||
# relying on python3-config exclusively
|
||||
enablePython ? stdenv.hostPlatform == stdenv.buildPlatform, python3, swig,
|
||||
linuxHeaders ? stdenv.cc.libc.linuxHeaders
|
||||
}:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user