compile x64 .dll and .so without dependencies

novice2 sorryno at em.ail
Sun Mar 5 20:22:37 UTC 2023


On Sunday, 5 March 2023 at 18:35:58 UTC, Guillaume Piolat wrote:
>     "targetType": "dynamicLibrary",
>     "dflags-linux-dmd": ["-defaultlib=libphobos2.a"],
>     "dflags-osx-ldc": ["-static"],
>     "dflags-linux-ldc": ["-link-defaultlib-shared=false"],
>     "dflags-linux-x86_64-ldc": ["-fvisibility=hidden"],
>     "dflags-windows-ldc": 
> ["-mscrtlib=libcmt","-fvisibility=hidden", 
> "-link-defaultlib-shared=false"],
>
> Additionally on (Windows + DUB + LDC), you will need to set an 
> envvar:
> DFLAGS=-fvisibility=hidden -dllimport=none

Thank you!


More information about the Digitalmars-d-learn mailing list