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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: No more static `libgnat` with FSF GNAT? Date: Sun, 14 Apr 2013 17:47:52 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: uwos+1ZhmnbuJ+99C4yJ/Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:14996 Date: 2013-04-14T17:47:52+02:00 List-Id: On Sun, 14 Apr 2013 15:19:11 +0200, Pascal Obry wrote:= Hi Pascal, nice to see you > Yannick, >> Is this Ubuntu specific or is this FSF GNAT? Is there a technical = > reason > > for not including any=E2=80=91more a static version of `libgnat` or = was it just > > forgotten? > > > Note: using libgnat-4.6.3 > I still have the static libgnat in gnat-4.6 package on GNU/Debian: >$ apt-file list gnat-4.6 | grep libgnat > [=E2=80=A6] So that's in the GNAT package. I did not look here, and looked at the = libgnat-4.6 package instead. Here is about what I did: $ dpkg-query --listfiles libgnat-4.6 | grep libgnat /usr/share/lintian/overrides/libgnat-4.6 /usr/lib/i386-linux-gnu/libgnat-4.6.so.1 /usr/share/doc/libgnat-4.6 Thus I did not find it. Using a command similar to the one I used, here is what you did: $ dpkg-query --listfiles gnat-4.6 | grep libgnat /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.a /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.so /usr/lib/i386-linux-gnu/libgnat.so /usr/lib/i386-linux-gnu/libgnat-4.6.so And here the *both* a shared and static version appears. Something I don't understand now then, is: if the GNAT package provides = = the library, what is the purpose of this separate shared library package= ? = I though it may be a dependency package (without installing GNAT) for = applications linked to the shared GNAT library, but if I try to remove i= t, = Synaptic tells me I have to remove GNAT as a whole too. Strange=E2=80=A6= I could build adding this to the Linker package option in the GPR file: Common_Switches :=3D ([=E2=80=A6], "/usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.a"); That works, but I don't understand the rational behind this, and I don't= = like it (to not understand it). I will need to have a deeper review of = this topic. -- Yannick Duch=C3=AAne -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity