From 998f49261d5a7d800d5bfdceae5064d60bf2fbba Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 2 Dec 2021 21:02:48 +0800 Subject: [PATCH] flake: fix Windows libs further --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a476cdb9..f0fdc431 100644 --- a/flake.nix +++ b/flake.nix @@ -77,8 +77,9 @@ cat << EOF > llvm-cfg/llvm-config #!${pkgs.bash}/bin/bash set -e - # gross hack to work around llvm-config asking for the wrong system libraries - exec ${pkgs-mingw.llvm_12.dev}/bin/llvm-config-native \$@ | ${pkgs.gnused}/bin/sed s/-lrt\ -ldl/-lmcfgthread\ -lz/ + # Gross hack to work around llvm-config asking for the wrong system libraries. + # Also add some other libraries we need here. + exec ${pkgs-mingw.llvm_12.dev}/bin/llvm-config-native \$@ | ${pkgs.gnused}/bin/sed s/-lrt\ -ldl\ -lpthread\ -lm/-lmcfgthread\ -lz\ -luuid\ -lole32/ EOF chmod +x llvm-cfg/llvm-config export PATH=$PATH:`pwd`/llvm-cfg