llvmPackages_git: apply #190936 (fix pkgsStatic LLVM build)

This was applied to `llvmPackages_15` in
81ef82a029
This commit is contained in:
Rahul Butani
2023-04-03 10:30:55 -05:00
parent e835abc046
commit e505ffd251
@@ -270,6 +270,7 @@ in stdenv.mkDerivation (rec {
# Disables building of shared libs, -fPIC is still injected by cc-wrapper
"-DLLVM_ENABLE_PIC=OFF"
"-DLLVM_BUILD_STATIC=ON"
"-DLLVM_LINK_LLVM_DYLIB=off"
# libxml2 needs to be disabled because the LLVM build system ignores its .la
# file and doesn't link zlib as well.
# https://github.com/ClangBuiltLinux/tc-build/issues/150#issuecomment-845418812