diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-04-13 16:48:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 16:48:38 -0400 |
commit | e520d6af29158ff6d17c34ec16b1f2e79bccad45 (patch) | |
tree | ddf031dda697cba7549ed8357ca3454c30433fbd /pkgs/development/libraries/tinyxml | |
parent | 940c35568bc2fa135eafe0817027c765d9840469 (diff) | |
parent | c6ff360cc437d366c10f2f827edd5a7fb47e73c3 (diff) |
Merge pull request #84415 from matthewbauer/mb-cross-fixes-april2020
Cross compilation fixes [april 2020]
Diffstat (limited to 'pkgs/development/libraries/tinyxml')
-rw-r--r-- | pkgs/development/libraries/tinyxml/2.6.2.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/tinyxml/2.6.2.nix b/pkgs/development/libraries/tinyxml/2.6.2.nix index 664030bc1bcca..9c909d5e14d6c 100644 --- a/pkgs/development/libraries/tinyxml/2.6.2.nix +++ b/pkgs/development/libraries/tinyxml/2.6.2.nix @@ -23,14 +23,14 @@ in stdenv.mkDerivation { ./2.6.2-cxx.patch ]; - preConfigure = "export LD=${if stdenv.isDarwin then "clang++" else "g++"}"; + preConfigure = "export LD=${stdenv.cc.targetPrefix}c++"; hardeningDisable = [ "format" ]; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; - buildInputs = [ unzip ]; + nativeBuildInputs = [ unzip ]; buildPhase = '' # use STL (xbmc requires it) sed '1i#define TIXML_USE_STL 1' -i tinyxml.h |