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,10706aebb8b707de X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.231 with SMTP id pv7mr519375pbb.8.1329986222693; Thu, 23 Feb 2012 00:37:02 -0800 (PST) Path: wr5ni58490pbc.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gnat executables Date: Thu, 23 Feb 2012 08:37:00 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="8305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XbKeeg82rN/jwg3xu3z/PZYgmVrvCyU0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:eGwex+6UEjboiH5The5heqmDIAk= sha1:sY8ugQ7YntMeKfJMbgH2yK8zCks= Content-Type: text/plain; charset=us-ascii Date: 2012-02-23T08:37:00+00:00 List-Id: "John B. Matthews" writes: > In article , > "Dmitry A. Kazakov" wrote: > >> additionally, specifically regarding gtkada, there should be >> gtkada-config script installed, which spits switches for the linker >> and compiler. To be used like: >> >> $ gnatmake ... -largs `gtkada-config --libs --static` ... >> >> See gtkada-config --help > > There's an example Makefile here: > > I don't think AdaCore are 100% consistent on this, but they have used an environment variable LIBRARY_TYPE to control GPRs: for example, (one of mine), project BC is type Library_T is ("static", "relocatable"); Library_Type : Library_T := external ("LIBRARY_TYPE", "static"); for Library_Name use "bc"; for Library_Kind use Library_Type; for Library_Dir use "../../lib/bc/lib-" & Library_Type; for Externally_Built use "true"; for Source_Dirs use ("../../include/bc/"); end BC;