mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
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
This commit is contained in:
parent
3666a7c149
commit
7f3aa94399
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue