python27: add override to build statically

This commit is contained in:
Matthew Bauer 2019-06-03 12:22:40 -04:00
parent 7531309c6e
commit 9f7bb1f512
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,7 @@
, sourceVersion
, sha256
, passthruFun
, static ? false
}:
assert x11Support -> tcl != null
@ -164,7 +165,8 @@ let
]
# Never even try to use lchmod on linux,
# don't rely on detecting glibc-isms.
++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no";
++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no"
++ optional static "LDFLAGS=-static";
buildInputs =
optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++

View file

@ -161,4 +161,6 @@ in {
};
};
python27 = super.python27.override { static = true; };
}