summary refs log tree commit diff
path: root/pkgs/applications/graphics/freecad
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-06 11:00:29 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-06 11:00:29 +0000
commite132efaeeba9bb2a9eb0d863b9546523454fc636 (patch)
tree32a0752021496a39b3d972624d8763d3274bd72c /pkgs/applications/graphics/freecad
parentb3acca85fdef2fe7a119616debd544dfbac196a8 (diff)
downloadnixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar.gz
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar.bz2
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar.lz
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar.xz
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.tar.zst
nixpkgs-e132efaeeba9bb2a9eb0d863b9546523454fc636.zip
Fixing the freecad build on i686-linux
svn path=/nixpkgs/trunk/; revision=26173
Diffstat (limited to 'pkgs/applications/graphics/freecad')
-rw-r--r--pkgs/applications/graphics/freecad/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix
index 1b0955edfaa..cfe97e12476 100644
--- a/pkgs/applications/graphics/freecad/default.nix
+++ b/pkgs/applications/graphics/freecad/default.nix
@@ -19,9 +19,11 @@ stdenv.mkDerivation rec {
 
   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 = ''