3
0
Fork 0
forked from mirrors/nixpkgs

Fixing the fontconfig native build (cross-building related)

svn path=/nixpkgs/branches/stdenv-updates/; revision=18658
This commit is contained in:
Lluís Batlle i Rossell 2009-11-26 21:26:42 +00:00
parent cfbe19781d
commit 8a115c13ad

View file

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
configureFlags = "--with-confdir=/etc/fonts --with-cache-dir=/var/cache/fontconfig --disable-docs --with-default-fonts=";
crossArch = stdenv.cross.arch;
# We should find a better way to access the arch reliably.
crossArch = if (stdenv ? cross && stdenv.cross != null)
then stdenv.cross.arch else null;
preConfigure = ''
if test -n "$crossConfig"; then