How can I build dynamic library with ldc in termux?

Guillaume Piolat first.last at gmail.com
Sun Mar 3 11:55:55 UTC 2019


On Sunday, 3 March 2019 at 01:51:49 UTC, Domain wrote:
> On Sunday, 3 March 2019 at 01:47:50 UTC, Domain wrote:
>> /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: 
>> cannot find -lphobos2-ldc-shared
>> /data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: 
>> cannot find -ldruntime-ldc-shared
>
> Any dub config example?

Perhaps this:

add this flag to your dub.json:

     "dflags-linux-dmd": ["-defaultlib=libphobos2.a"],

and if you are using SDLang, convert it to JSON before :)


More information about the Digitalmars-d-learn mailing list