qt4: another attempt to fix build on Darwin
This commit is contained in:
parent
2ba076e99c
commit
45fcefd4be
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-std=gnu++98"
|
NIX_CFLAGS_COMPILE =
|
||||||
|
optionalString stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
|
||||||
+ optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
|
+ optionalString (stdenv.isFreeBSD || stdenv.isDarwin)
|
||||||
" -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include"
|
" -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include"
|
||||||
+ optionalString stdenv.isDarwin " -I${libcxx}/include/c++/v1";
|
+ optionalString stdenv.isDarwin " -I${libcxx}/include/c++/v1";
|
||||||
|
|
Loading…
Reference in a new issue