move some of the configuration into the builder from default.nix. Also add support for sparc
svn path=/nixpkgs/trunk/; revision=4470
This commit is contained in:
parent
a4a9e5aea6
commit
05ab87c7e1
@ -1,5 +1,13 @@
|
||||
source $stdenv/setup
|
||||
|
||||
if test $cross = "arm-linux" ; then
|
||||
configureFlags="--target=arm-linux"
|
||||
elif test $cross = "mips-linux" ; then
|
||||
configureFlags="--target=mips-linux"
|
||||
elif test $cross = "sparc-linux" ; then
|
||||
configureFlags="--target=sparc-linux"
|
||||
fi
|
||||
|
||||
patchConfigure() {
|
||||
# Clear the default library search path.
|
||||
if test "$noSysDirs" = "1"; then
|
||||
|
@ -8,5 +8,6 @@ stdenv.mkDerivation {
|
||||
md5 = "6a9d529efb285071dad10e1f3d2b2967";
|
||||
};
|
||||
inherit noSysDirs;
|
||||
configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else "";
|
||||
#configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else if cross=="sparc-linux" then "--target=sparc-linux";
|
||||
inherit cross;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user