comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: [newbie] library dependencies
Date: 27 Mar 2004 10:38:54 +0100
Date: 2004-03-27T10:38:54+01:00	[thread overview]
Message-ID: <87ad22y6hd.fsf@insalien.org> (raw)
In-Reply-To: Xns94B96590A67A5Zoupla@212.27.42.74

Zouplaz <pouet@pouet.com> writes:

> Hi here, just another simple question : with gnat under win32 or linux is 
> it possible to compile an application that doesn't rely on any shared 
> libraries ? (statically linked I presume) 
> 
> What I want is an app that could be copied directly from a system (same 
> platform of course) to another..

On GNU/Linux, this is definitely possible.  Just pass -static to
gnatbind, e.g.

gnatmake my_app -bargs -static -largs /usr/lib/libmy_library.a

Usually, the static libraries /usr/lib/lib*.a contain debugging
symbols; you may want to strip them off like this:

strip my_app

-- 
Ludovic Brenta.



  reply	other threads:[~2004-03-27  9:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-27  9:00 [newbie] library dependencies Zouplaz
2004-03-27  9:38 ` Ludovic Brenta [this message]
2004-03-27 16:26 ` Martin Krischik
replies disabled

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