Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 31, 2018 Linking to dynamic druntime with dub | ||||
---|---|---|---|---|
| ||||
My application needs to load shared libraries: on Posix this is only supported with a shared druntime. How does one link to the dynamic druntime with dub? |
August 01, 2018 Re: Linking to dynamic druntime with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicholas Wilson | On 01/08/2018 1:43 AM, Nicholas Wilson wrote:
> My application needs to load shared libraries: on Posix this is only supported with a shared druntime. How does one link to the dynamic druntime with dub?
The same way you do it without dub.
Except you pass the flags inside of "dflags".
|
July 31, 2018 Re: Linking to dynamic druntime with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | On Tuesday, 31 July 2018 at 13:52:21 UTC, rikki cattermole wrote:
> On 01/08/2018 1:43 AM, Nicholas Wilson wrote:
>> My application needs to load shared libraries: on Posix this is only supported with a shared druntime. How does one link to the dynamic druntime with dub?
>
> The same way you do it without dub.
> Except you pass the flags inside of "dflags".
which is? (I usually use -link-defaultlib-shared with LDC hence the question with dub).
|
August 01, 2018 Re: Linking to dynamic druntime with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicholas Wilson | On 01/08/2018 2:18 AM, Nicholas Wilson wrote:
> On Tuesday, 31 July 2018 at 13:52:21 UTC, rikki cattermole wrote:
>> On 01/08/2018 1:43 AM, Nicholas Wilson wrote:
>>> My application needs to load shared libraries: on Posix this is only supported with a shared druntime. How does one link to the dynamic druntime with dub?
>>
>> The same way you do it without dub.
>> Except you pass the flags inside of "dflags".
>
> which is? (I usually use -link-defaultlib-shared with LDC hence the question with dub).
No idea for dmd/gdc.
But for LDC that would be (json):
"dflags-ldc2": ["-link-defaultlib-shared"],
|
August 01, 2018 Re: Linking to dynamic druntime with dub | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | On Tuesday, 31 July 2018 at 14:27:18 UTC, rikki cattermole wrote:
> On 01/08/2018 2:18 AM, Nicholas Wilson wrote:
>> On Tuesday, 31 July 2018 at 13:52:21 UTC, rikki cattermole wrote:
>>> On 01/08/2018 1:43 AM, Nicholas Wilson wrote:
>>>> My application needs to load shared libraries: on Posix this is only supported with a shared druntime. How does one link to the dynamic druntime with dub?
>>>
>>> The same way you do it without dub.
>>> Except you pass the flags inside of "dflags".
>>
>> which is? (I usually use -link-defaultlib-shared with LDC hence the question with dub).
>
> No idea for dmd/gdc.
> But for LDC that would be (json):
>
> "dflags-ldc2": ["-link-defaultlib-shared"],
Ahh, it turns out that loading shared libraries is not supported on OSX, wonderful.
|
Copyright © 1999-2021 by the D Language Foundation