From: Simon Wright <simon@pushface.org>
Subject: Re: static linking
Date: Sat, 04 Oct 2014 08:21:01 +0100
Date: 2014-10-04T08:21:01+01:00 [thread overview]
Message-ID: <lyd2a89u76.fsf@pushface.org> (raw)
In-Reply-To: aliu2apc3ejiki20dkcvf31ce0rfvh82nv@4ax.com
agent@drrob1.com writes:
> 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).
next prev parent reply other threads:[~2014-10-04 7:21 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 [this message]
2014-10-04 18:10 ` agent
-- 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