Author: viric
Date: Sun Mar  6 11:00:29 2011
New Revision: 26173
URL: https://svn.nixos.org/websvn/nix/?rev=26173&sc=1

Log:
Fixing the freecad build on i686-linux

Modified:
   nixpkgs/trunk/pkgs/applications/graphics/freecad/default.nix

Modified: nixpkgs/trunk/pkgs/applications/graphics/freecad/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/applications/graphics/freecad/default.nix        Sat Mar 
 5 23:08:10 2011        (r26172)
+++ nixpkgs/trunk/pkgs/applications/graphics/freecad/default.nix        Sun Mar 
 6 11:00:29 2011        (r26173)
@@ -19,9 +19,11 @@
 
   enableParallelBuilding = true;
 
-  # They are used to boost 1.42, and we have newer boost that require
-  # this for freecad to build
-  NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2";
+  # The freecad people are used to boost 1.42, and we have newer boost that
+  # require the -DBOOST_FILESYSTEM_VERSION=2 for freecad to build
+  # For zlib to build in i686-linux, as g++ plus glibc defines 
_LARGEFILE64_SOURCE,
+  # we need the -D-FILE_OFFSET_BITS=64 indication for zlib headers to work.
+  NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2 -D_FILE_OFFSET_BITS=64";
 
   # This should work on both x86_64, and i686 linux
   preBuild = ''
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to