pkgs/tools/system/ipmitool: added optional support for generating statically linked binaries
svn path=/nixpkgs/trunk/; revision=19778
This commit is contained in:
parent
c261d7a847
commit
715c59b281
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv, openssl }:
|
{ fetchurl, stdenv, openssl, static ? false }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgname = "ipmitool";
|
pkgname = "ipmitool";
|
||||||
@ -13,6 +13,9 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
|
dontDisableStatic = static;
|
||||||
|
configureFlags = if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared";
|
||||||
|
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = ''Command-line interface to IPMI-enabled devices'';
|
description = ''Command-line interface to IPMI-enabled devices'';
|
||||||
|
@ -909,6 +909,7 @@ let
|
|||||||
|
|
||||||
ipmitool = import ../tools/system/ipmitool {
|
ipmitool = import ../tools/system/ipmitool {
|
||||||
inherit fetchurl stdenv openssl;
|
inherit fetchurl stdenv openssl;
|
||||||
|
static = getPkgConfig "ipmitool" "static" false;
|
||||||
};
|
};
|
||||||
|
|
||||||
jdiskreport = import ../tools/misc/jdiskreport {
|
jdiskreport = import ../tools/misc/jdiskreport {
|
||||||
|
Loading…
Reference in New Issue
Block a user