diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-03-07 13:49:51 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-03-07 13:49:51 +0000 |
commit | 7f3aa94399c155de5b6a026f9b9b26f461ea1e5c (patch) | |
tree | 08a94442817004fcb577bafcd3d2330bf8dcad1d /pkgs/development/libraries/opencascade | |
parent | 3666a7c1492550370152f48b7a11a3bb4b1b9565 (diff) | |
download | nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar.gz nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar.bz2 nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar.lz nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar.xz nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.tar.zst nixpkgs-7f3aa94399c155de5b6a026f9b9b26f461ea1e5c.zip |
Fixing the build of opencascade on linux.
The new gcc sees a code flaw that I can 'overcome' (make the build go on) with -fpermissive. svn path=/nixpkgs/trunk/; revision=32852
Diffstat (limited to 'pkgs/development/libraries/opencascade')
-rw-r--r-- | pkgs/development/libraries/opencascade/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencascade/default.nix b/pkgs/development/libraries/opencascade/default.nix index 87bbd112758..375aa4f2d58 100644 --- a/pkgs/development/libraries/opencascade/default.nix +++ b/pkgs/development/libraries/opencascade/default.nix @@ -18,7 +18,9 @@ stdenv.mkDerivation rec { sh ./build_configure ''; - NIX_CFLAGS_COMPILE = "-I${ftgl}/include/FTGL -I${freetype}/include/freetype2"; + # -fpermissive helps building opencascade, although gcc detects a flaw in the code + # and reports an error otherwise. Further versions may fix that. + NIX_CFLAGS_COMPILE = "-I${ftgl}/include/FTGL -I${freetype}/include/freetype2 -fpermissive"; configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ]; |