comp.lang.ada
 help / color / mirror / Atom feed
From: Frank Piron <empty@zero.nil>
Subject: Re: Building a shared library with gnat
Date: Wed, 15 Sep 2004 11:31:25 +0200
Date: 2004-09-15T11:31:25+02:00	[thread overview]
Message-ID: <opsec3enjtm0et4w@news.online.de> (raw)
In-Reply-To: opsebdaevjm0et4w@news.online.de

Am Tue, 14 Sep 2004 13:09:40 +0200 schrieb Frank Piron <empty@zero.nil>:

> Hi,
>
> i'm just trying to build a shared library
> for use in non ada context with gnat 3.15p
> on a sun sparc with solaris 5.8.
>
> I followed the advice in the gnat user guide,
> but the .so which came out contains many lazy
> dependencies to gnat runtime.
>
>
> How can i build a shared object which itself
> is linked with a static gnat runtime.
>
> Do i have to rebuild gnat runtime with -fPIC?

Yes, rebuilding gnat runtime with the -fPIC flag
and then linking together the archives libgnarl.a,
libgnat.a with the object files of the ada library
produces a standalone shared object.

----------------------------------------------------
f_r_a_n_k_a_t_k_o_n_a_d_d_o_t_n_e_t



      reply	other threads:[~2004-09-15  9:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-14 11:09 Building a shared library with gnat Frank Piron
2004-09-15  9:31 ` Frank Piron [this message]
replies disabled

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