From 3d53d140703c1b4f65be9b69a93f90affc9d2279 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 13 May 2018 01:08:06 +0000 Subject: tinyxml: disable format hardening, else tests will fail --- pkgs/development/libraries/tinyxml/2.6.2.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/development/libraries/tinyxml') diff --git a/pkgs/development/libraries/tinyxml/2.6.2.nix b/pkgs/development/libraries/tinyxml/2.6.2.nix index cc374345c2eb4..2ec9c57e2411d 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"; -- cgit 1.4.1