LDC cant find lld-link when crosscompiling
Sergey
kornburn at yandex.ru
Wed Oct 9 17:08:34 UTC 2024
On Wednesday, 9 October 2024 at 16:07:29 UTC, AzuraAkumore wrote:
> Where have i messed up or am I even on the right track?
It seems fine.. the only thing I can think about is misuse of
32/64 bit libs..
I have this notes:
1) Download Windows multilib
2) Install ldc on linux to LDC_PATH/ldc
3) unzip windows and put lib32 and lib64 to <LDC_PATH>/win-lib32
and <LDC_PATH>/win-lib64
4) Use config:
```
"i[3-6]86-.*-windows-msvc":
{
switches = [
"-defaultlib=phobos2-ldc,druntime-ldc",
"-link-defaultlib-shared=false",
];
lib-dirs = [
"%%ldcbinarypath%%/../win-lib32",
];
};
"x86_64-.*-windows-msvc":
{
switches = [
"-defaultlib=phobos2-ldc,druntime-ldc",
"-link-defaultlib-shared=false",
];
lib-dirs = [
"%%ldcbinarypath%%/../win-lib64",
];
};
```
5) dub build --arch=x86_64-pc-windows-msvc
More information about the Digitalmars-d-learn
mailing list