Thread overview
shared flag
Aug 13, 2012
bioinfornatics
Aug 13, 2012
Gyula Gubacsi
Aug 13, 2012
bioinfornatics
Aug 13, 2012
Mike Wey
August 13, 2012
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

August 13, 2012
Could you expand on it?

On 13 August 2012 13:56, bioinfornatics <bioinfornatics@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
>
>


August 13, 2012
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@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

August 13, 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@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