Trying to cross compile from windows to android
Jerry
labuurii at gmail.com
Fri Jan 21 09:38:46 UTC 2022
On Thursday, 20 January 2022 at 19:31:06 UTC, H. S. Teoh wrote:
> On Thu, Jan 20, 2022 at 07:10:40PM +0000, Jerry via
> Digitalmars-d-learn wrote:
>
> You're trying to use bfd as your linker, and I think that only
> exists on the Linux version of the NDK. Maybe try looking
> somewhere under
> ldc_android/android_ndk/toolchains/x86_64-*/prebuilt/windows-x86_64/bin to see what linkers are shipped with your NDK, and specify that instead?
>
> On Linux, I see a bunch of binaries named
> x86_64-linux-android-*, including *-ld, *-ld.bfd, *-ld.gold,
> which are the 3 linkers that can be used via -fuse-ld=bfd,
> -fuse-ld=gold, etc.. I'm not sure how it works on Windows, but
> there should be corresponding binaries that might give a hint
> as to what's the correct -fuse-ld=... option you need to use.
>
>
> T
Thank you mate, got it working now. With the ld linker.
More information about the Digitalmars-d-learn
mailing list