summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-03-05 20:30:35 -0500
committerGitHub <noreply@github.com>2020-03-05 20:30:35 -0500
commitb8102aa32e556a7a7f9e174a9cd0601ff94f0d05 (patch)
tree1dc189cea21c427de5cf26ea0078b74e19df834d /pkgs/build-support
parent19f7c641cca4e26d15aae76d60c29c77237bbd9a (diff)
parentd9feea58aeded06aded50eee7e9d69ebe1086e7e (diff)
downloadnixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar.gz
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar.bz2
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar.lz
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar.xz
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.tar.zst
nixpkgs-b8102aa32e556a7a7f9e174a9cd0601ff94f0d05.zip
Merge pull request #81844 from lopsided98/gcc-separate-output-cross
gcc: place cross-compiled target libraries in lib output
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index b078bf2fbbd..9bac8feef6d 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -41,7 +41,9 @@ let
   libc_bin = if libc == null then null else getBin libc;
   libc_dev = if libc == null then null else getDev libc;
   libc_lib = if libc == null then null else getLib libc;
-  cc_solib = getLib cc;
+  cc_solib = getLib cc
+    + optionalString (targetPlatform != hostPlatform) "/${targetPlatform.config}";
+
   # The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
   coreutils_bin = if nativeTools then "" else getBin coreutils;