comp.lang.ada
 help / color / mirror / Atom feed
From: agent@drrob1.com
Subject: Re: static linking
Date: Sat, 04 Oct 2014 14:10:44 -0400
Date: 2014-10-04T14:10:44-04:00	[thread overview]
Message-ID: <l0e03atuvee2tthgbf5p38h1nh5pikripj@4ax.com> (raw)
In-Reply-To: lyd2a89u76.fsf@pushface.org

On Sat, 04 Oct 2014 08:21:01 +0100, Simon Wright <simon@pushface.org>
wrote:

>
>> Hi.  I have written a small ada  pgm under ubuntu.  This program is
>> working.  But it only works on computers that I have already installed
>> gnat.  I am assuming that this is due to dynamic linking to a runtime
>> library for ada.
>>
>> Is there a way to statically link an ada program so I do not have this
>> issue?
>
>   $ gnatbind --help
>   ...
>     -static   Link against a static GNAT run time
>     -shared   Link against a shared GNAT run time
>   ...
>
>   $ gnatmake foo.adb -bargs -static
>
>(I guess -shared is default on your system; on Mac OS X it appears the
>default is -static).

Thanks.  That worked.


  reply	other threads:[~2014-10-04 18:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04  1:19 static linking agent
2014-10-04  7:21 ` Simon Wright
2014-10-04 18:10   ` agent [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-08-07  7:54 Static linking Markus Schoepflin
2009-08-07 10:15 ` Ludovic Brenta
2009-08-07 10:46   ` Markus Schoepflin
2009-08-12 14:20 ` Alex R. Mosteo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox