Added prefixKey to stdenv/generic/setup-new-2.sh

Now you can write prefixKey="-prefix " and "-prefix ${out}" will be inserted in
configureFlags (instead of "--prefix ${out}").

svn path=/nixpkgs/trunk/; revision=9351
This commit is contained in:
Yury G. Kudryashov 2007-09-20 19:52:38 +00:00
parent ffeb95502d
commit b840189493

View File

@ -595,7 +595,7 @@ configureW() {
fi
if test -z "$dontAddPrefix"; then
configureFlags="--prefix=$prefix $configureFlags"
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
fi
echo "configure flags: $configureFlags ${configureFlagsArray[@]}"