On 08/01/2024 7:14 AM, Renato wrote:
On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_9999 wrote:
Hi, I am trying with gdc to create the equivalent of a fat jar. So for that I would need the standard dlang library included in the object or library file. Does somebody know the needed gdc flags?
I am using mips64-linux-gnuabi64-gdc-12.
pizza_dox_9999

Did you try using dub and specifying `targetType="staticLibrary"`?

See https://dub.pm/dub-reference/build_settings/#targetpath

Even if you just want the right flags, this could help as you can "ask" dub to print the flags it's using with `dub build -v`.

Dub's static library target type does not include dependencies or druntime/phobos.

Typically static libraries do not combine to produce a bigger static library.

Reply via email to