Skip to content

Commit

Permalink
qt4: disable warnings to fit log on Hydra
Browse files Browse the repository at this point in the history
Also convert flags to list of nix strings.
  • Loading branch information
vcunat committed Feb 17, 2018
1 parent d4f1587 commit 44a2012
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/development/libraries/qt-4.x/4.8/default.nix
Expand Up @@ -176,13 +176,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;

NIX_CFLAGS_COMPILE =
optionalString stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
+ optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
" -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include"
+ optionalString stdenv.isDarwin " -I${libcxx}/include/c++/v1";

NIX_LDFLAGS = optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
"-lglib-2.0";
# with gcc7 the warnings blow the log over Hydra's limit
[ "-Wno-expansion-to-defined" "-Wno-unused-local-typedefs" ]
++ optional stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
++ optionals (stdenv.isFreeBSD || stdenv.isDarwin)
[ "-I${glib.dev}/include/glib-2.0" "-I${glib.out}/lib/glib-2.0/include" ]
++ optional stdenv.isDarwin "-I${libcxx}/include/c++/v1";

NIX_LDFLAGS = optional (stdenv.isFreeBSD || stdenv.isDarwin) "-lglib-2.0";

preBuild = optionalString stdenv.isDarwin ''
# resolve "extra qualification on member" error
Expand Down

0 comments on commit 44a2012

Please sign in to comment.