Merge pull request #91178 from FRidh/ldshared

python3: improve cross-compilation of extension modules, fixes #91171
This commit is contained in:
Frederik Rietdijk
2020-06-22 08:47:40 +02:00
committed by GitHub
3 changed files with 36 additions and 4 deletions
@@ -20,10 +20,6 @@ stdenv.mkDerivation rec {
# for python cross-compiling
_PYTHON_HOST_PLATFORM = stdenv.hostPlatform.config;
# The i686 case is a quick hack; I don't know what's wrong.
postConfigure = stdenv.lib.optionalString (!stdenv.isi686) ''
export LDSHARED="$LD -shared"
'';
# gcc bug with -O1 on ARM with gcc 4.8
# This should be fine on all platforms so apply universally