comp.lang.ada
 help / color / mirror / Atom feed
* Building a shared library with gnat
@ 2004-09-14 11:09 Frank Piron
  2004-09-15  9:31 ` Frank Piron
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Piron @ 2004-09-14 11:09 UTC (permalink / raw)


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 recbuild gnat runtime with -fPIC?

Regards,
Frank Piron

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building a shared library with gnat
  2004-09-14 11:09 Building a shared library with gnat Frank Piron
@ 2004-09-15  9:31 ` Frank Piron
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Piron @ 2004-09-15  9:31 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-15  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 11:09 Building a shared library with gnat Frank Piron
2004-09-15  9:31 ` Frank Piron

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