From 1740628e4141a306ba1f97baad675d55dba7a27a Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 18 Feb 2021 19:41:03 +0100 Subject: [PATCH] stdenv.cc: move a -L flag from cc-cflags to cc-ldflags --- overlay/llvm-11/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/llvm-11/default.nix b/overlay/llvm-11/default.nix index 8ceb33b..4016774 100644 --- a/overlay/llvm-11/default.nix +++ b/overlay/llvm-11/default.nix @@ -102,7 +102,7 @@ let echo "--gcc-toolchain=${toolchain.cc}" >> $out/nix-support/cc-cflags echo "--sysroot=${genodeBase}" >> $out/nix-support/cc-cflags echo "-I${genodeBase}/include" >> $out/nix-support/cc-cflags - echo "-L ${genodeBase}" >> $out/nix-support/cc-cflags + echo "-L ${genodeBase}" >> $out/nix-support/cc-ldflags for dir in ${gccForLibs}/${stdenv.targetPlatform.config}/include/c++/*; do echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags