python27: add override to build statically
This commit is contained in:
parent
7531309c6e
commit
9f7bb1f512
2 changed files with 5 additions and 1 deletions
|
@ -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 ++
|
||||
|
|
|
@ -161,4 +161,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
python27 = super.python27.override { static = true; };
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue