mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
* Pass makeFlags to `make install' as well. This is because quite
often the same flags need to be passed to both `make' and `make install'. Added a variable buildFlags for flags that should only be passed to `make'. svn path=/nixpkgs/trunk/; revision=7491
This commit is contained in:
parent
81025a05df
commit
ed8fff32af
@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
||||
|
||||
preBuild = "
|
||||
substituteInPlace libcap/Makefile --replace /usr/include ${stdenv.glibc}/include
|
||||
installFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\"
|
||||
makeFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\"
|
||||
";
|
||||
|
||||
patches = [
|
||||
|
@ -566,8 +566,10 @@ buildW() {
|
||||
|
||||
eval "$preBuild"
|
||||
|
||||
echo "make flags: $makeFlags ${makeFlagsArray[@]}"
|
||||
make $makeFlags "${makeFlagsArray[@]}" || fail
|
||||
echo "make flags: $makeFlags ${makeFlagsArray[@]} $buildFlags ${buildFlagsArray[@]}"
|
||||
make \
|
||||
$makeFlags "${makeFlagsArray[@]}" \
|
||||
$buildFlags "${buildFlagsArray[@]}" || fail
|
||||
|
||||
eval "$postBuild"
|
||||
}
|
||||
@ -638,8 +640,10 @@ installW() {
|
||||
if test -z "$installTargets"; then
|
||||
installTargets=install
|
||||
fi
|
||||
echo "install flags: $installTargets $installFlags ${installFlagsArray[@]}"
|
||||
make $installTargets $installFlags "${installFlagsArray[@]}" || fail
|
||||
echo "install flags: $installTargets $makeFlags ${makeFlagsArray[@]} $installFlags ${installFlagsArray[@]}"
|
||||
make $installTargets \
|
||||
$makeFlags ${makeFlagsArray[@]} \
|
||||
$installFlags "${installFlagsArray[@]}" || fail
|
||||
fi
|
||||
else
|
||||
eval "$installCommand"
|
||||
|
Loading…
Reference in New Issue
Block a user