www.digitalmars.com         C & C++   DMDScript  

D.gnu - shared flag

reply bioinfornatics <bioinfornatics fedoraproject.org> writes:
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
Aug 13 2012
parent reply Gyula Gubacsi <gyula.gubacsi gmail.com> writes:
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
Aug 13 2012
parent reply bioinfornatics <bioinfornatics fedoraproject.org> writes:
Le lundi 13 ao=C3=BBt 2012 =C3=A0 17:11 +0100, Gyula Gubacsi a =C3=A9crit :
 Could you expand on it?
=20
 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
        =20
=20
An use case: ldc2 -shared -soname libFoo.so.1 foo.d -of libFoo.so.1.0
Aug 13 2012
parent Mike Wey <mike-wey example.com> writes:
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
Aug 13 2012