python27: add override to build statically
This commit is contained in:
parent
7531309c6e
commit
9f7bb1f512
@ -22,6 +22,7 @@
|
|||||||
, sourceVersion
|
, sourceVersion
|
||||||
, sha256
|
, sha256
|
||||||
, passthruFun
|
, passthruFun
|
||||||
|
, static ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> tcl != null
|
assert x11Support -> tcl != null
|
||||||
@ -164,7 +165,8 @@ let
|
|||||||
]
|
]
|
||||||
# Never even try to use lchmod on linux,
|
# Never even try to use lchmod on linux,
|
||||||
# don't rely on detecting glibc-isms.
|
# 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 =
|
buildInputs =
|
||||||
optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
|
optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
|
||||||
|
@ -161,4 +161,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
python27 = super.python27.override { static = true; };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user