From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d3a5af43ccecfbb9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Frank Piron Newsgroups: comp.lang.ada Subject: Re: Building a shared library with gnat Date: Wed, 15 Sep 2004 11:31:25 +0200 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: p508b4095.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: online.de 1095240432 23373 80.139.64.149 (15 Sep 2004 09:27:12 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Wed, 15 Sep 2004 09:27:12 +0000 (UTC) User-Agent: Opera7.23/Win32 M2 build 3227 Xref: g2news1.google.com comp.lang.ada:3749 Date: 2004-09-15T11:31:25+02:00 List-Id: Am Tue, 14 Sep 2004 13:09:40 +0200 schrieb Frank Piron : > 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