mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
add a static version of module-init-tools for NixOS
svn path=/nixpkgs/trunk/; revision=4427
This commit is contained in:
parent
4f0314a553
commit
53c0ae3af3
@ -0,0 +1,5 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export LDFLAGS=-static
|
||||
|
||||
genericBuild
|
13
pkgs/os-specific/linux/module-init-tools-static/default.nix
Normal file
13
pkgs/os-specific/linux/module-init-tools-static/default.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "module-init-tools-3.2.2";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-3.2.2.tar.bz2;
|
||||
md5 = "a1ad0a09d3231673f70d631f3f5040e9";
|
||||
};
|
||||
patches = [./module-init-tools-static.patch];
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -ruN module-init-tools-3.2.2/configure module-init-tools-3.2.2.new/configure
|
||||
--- module-init-tools-3.2.2/configure 2005-12-07 05:43:46.000000000 +0100
|
||||
+++ module-init-tools-3.2.2.new/configure 2005-12-24 00:37:44.000000000 +0100
|
||||
@@ -1741,7 +1741,7 @@
|
||||
#define CONFIG_USE_ZLIB 1
|
||||
_ACEOF
|
||||
|
||||
- zlib_flags="-Wl,-Bstatic -lz -Wl,-Bdynamic"
|
||||
+ zlib_flags="-Wl,-Bstatic -lz"
|
||||
fi
|
||||
fi;
|
||||
|
Loading…
Reference in New Issue
Block a user