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 ++