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
next sibling parent reply Gyula Gubacsi <gyula.gubacsi gmail.com> writes:
--14dae934085d9040e704c727f0ca
Content-Type: text/plain; charset=ISO-8859-1

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

--14dae934085d9040e704c727f0ca Content-Type: text/html; charset=ISO-8859-1 Could you expand on it?<br><br><div class="gmail_quote">On 13 August 2012 13:56, bioinfornatics <span dir="ltr">&lt;<a href="mailto:bioinfornatics fedoraproject.org" target="_blank">bioinfornatics fedoraproject.org</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear,<br> ldc has shared flag i think dmd has too, i would like to know if gdc<br> will get it ? if no how get same thing<br> <br> </blockquote></div><br> --14dae934085d9040e704c727f0ca--
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
prev sibling parent 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