Issue 145091
Summary `llvm-config --link-static` does not specify `ntdll.lib` import lib on Windows
Labels new issue
Assignees
Reporter graphitemaster
    When linking against LLVM statically, the `llvm-config` tool with `--link-static` does not specify the `ntdll.lib` import library despite `LLVMSupport` requiring `ntdll` since `Support/ErrorHandling.cpp` depends on `RtlGetLastNtStatus`. Attempting to link anything with it will be met with the following error
```
error: undefined symbol: __declspec(dllimport) RtlGetLastNtStatus
 >>> referenced by LLVMSupport.lib(ErrorHandling.cpp.obj)
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to