diff --git a/pkgs/development/libraries/tinyxml/2.6.2.nix b/pkgs/development/libraries/tinyxml/2.6.2.nix index cc374345c2eb..2ec9c57e2411 100644 --- a/pkgs/development/libraries/tinyxml/2.6.2.nix +++ b/pkgs/development/libraries/tinyxml/2.6.2.nix @@ -21,8 +21,11 @@ in stdenv.mkDerivation { # Use CC, CXX, and LD from environment ./2.6.2-cxx.patch ]; + preConfigure = "export LD=${if stdenv.isDarwin then "clang++" else "g++"}"; + hardeningDisable = [ "format" ]; + NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.isDarwin "-mmacosx-version-min=10.9";