[dmd-beta] dmd 2.063 beta
Mike Wey
mike at mikewey.eu
Mon Apr 29 11:21:17 PDT 2013
On 04/28/2013 09:07 PM, Walter Bright wrote:
>
> On 4/28/2013 8:00 AM, Mike Wey wrote:
>>
>>>
>>
>> Why is the shared version of phobos named differently than the static
>> version?
>>
>
> I couldn't get the linker to reliably pick one or the other unless they
> had different base names.
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
Usually you would use the -Bstatic and the -Bdynamic switches which
whould tell the linker: the libraries passed after this switch should be
linked statically or dynamically.
But if it's just for on library you could use -l:libphobos2.a or
-l:libphobos2.so to tell the linker which version to link with.
But i don't know how the user would specify this when compiling
something with dmd, with the current setup you can pass
-defaultlib=phobos2so to dynamically link with phobos.
--
Mike Wey
More information about the dmd-beta
mailing list