shared flag

Mike Wey mike-wey at example.com
Mon Aug 13 14:19:45 PDT 2012


On 08/13/2012 06:35 PM, bioinfornatics wrote:
> Le lundi 13 août 2012 à 17:11 +0100, Gyula Gubacsi a écrit :
>> Could you expand on it?
>>
>> On 13 August 2012 13:56, bioinfornatics
>> <bioinfornatics at fedoraproject.org> wrote:
>>          Dear,
>>          ldc has shared flag i think dmd has too, i would like to know
>>          if gdc
>>          will get it ? if no how get same thing
>>
>>
>
> An use case:
> ldc2 -shared -soname libFoo.so.1 foo.d -of libFoo.so.1.0
>

It has a -shared flag but you'll need to pass the soname on to the linker:

gdc -shared -Xlinker -soname=libFoo.so.1 foo.d -of libFoo.so.1.0

-- 
Mike Wey


More information about the D.gnu mailing list