Fixing the freecad build on i686-linux

svn path=/nixpkgs/trunk/; revision=26173

+5 -3
+5 -3
pkgs/applications/graphics/freecad/default.nix
··· 19 19 20 20 enableParallelBuilding = true; 21 21 22 - # They are used to boost 1.42, and we have newer boost that require 23 - # this for freecad to build 24 - NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2"; 22 + # The freecad people are used to boost 1.42, and we have newer boost that 23 + # require the -DBOOST_FILESYSTEM_VERSION=2 for freecad to build 24 + # For zlib to build in i686-linux, as g++ plus glibc defines _LARGEFILE64_SOURCE, 25 + # we need the -D-FILE_OFFSET_BITS=64 indication for zlib headers to work. 26 + NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2 -D_FILE_OFFSET_BITS=64"; 25 27 26 28 # This should work on both x86_64, and i686 linux 27 29 preBuild = ''