Create a self contained object file like fat jars from java

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Jan 14 11:46:12 UTC 2024


On 15/01/2024 12:42 AM, pizza_dox_9999 wrote:
> On Sunday, 14 January 2024 at 10:05:12 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> On 08/01/2024 7:14 AM, Renato wrote:
>>> On Friday, 5 January 2024 at 22:10:31 UTC, pizza_dox_9999 wrote:
>>>> [...]
>>>
>>> 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.
> 
> But thats what I need and want.

Combining of static libraries is not specific to D.

Although you're going to need to figure out how to get a list of all the 
static libraries you want to combine. The actual combination should be 
pretty standard.


More information about the D.gnu mailing list