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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,df7cea30536a085f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Controlling the linking of shared libraries Date: Mon, 25 Jul 2011 14:29:43 +0200 Organization: cbb software GmbH Message-ID: References: <98r7sbFs66U1@mid.individual.net> <992cqbFm9mU1@mid.individual.net> <82pqkyio0s.fsf@stephe-leake.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:21317 Date: 2011-07-25T14:29:43+02:00 List-Id: On Mon, 25 Jul 2011 13:06:34 +0100, Simon Wright wrote: > Stephen Leake writes: > >> Bj�rn Persson writes: >> >>> According to the manual >> >> That same manual (assuming it is the gprbuild manual) has a section >> "command line", which says -largs will do what you want. > > Yes, but Bj�rn reports that -largs doesn't work if you're building a > dynamic library! Yes, last time I checked it, I was forced to use two different gpr files for building and using the library. Since I generated them anyway that was not a big problem. In general it is a murky issue how linker and other package attributes (or how they call them) get propagated and composed upon "with"-ing, renaming etc. I wished AdaCore had documented that stuff, and gave thoughts too. E.g. recently they changed the behavior of the attributes recognized as file paths, so that path relative to the gpr file get broken. Of course file paths should have been a type, distinct for "option", distinct from "library name", distinct from String. But that is likely too late now. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de