flake: fix Windows libs further

This commit is contained in:
Sebastien Bourdeauducq 2021-12-02 21:02:48 +08:00
parent aab43b1c07
commit 998f49261d
1 changed files with 3 additions and 2 deletions

View File

@ -77,8 +77,9 @@
cat << EOF > llvm-cfg/llvm-config cat << EOF > llvm-cfg/llvm-config
#!${pkgs.bash}/bin/bash #!${pkgs.bash}/bin/bash
set -e set -e
# gross hack to work around llvm-config asking for the wrong system libraries # 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/ # 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 EOF
chmod +x llvm-cfg/llvm-config chmod +x llvm-cfg/llvm-config
export PATH=$PATH:`pwd`/llvm-cfg export PATH=$PATH:`pwd`/llvm-cfg