add a static version of module-init-tools for NixOS

svn path=/nixpkgs/trunk/; revision=4427
This commit is contained in:
Armijn Hemel 2005-12-24 00:25:18 +00:00
parent 4f0314a553
commit 53c0ae3af3
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,5 @@
source $stdenv/setup
export LDFLAGS=-static
genericBuild

View 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];
}

View File

@ -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;