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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4a64008f049d9bb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.24.99 with SMTP id t3mr2407284wif.0.1366381288613; Fri, 19 Apr 2013 07:21:28 -0700 (PDT) Path: hg5ni22285wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!216.196.110.142.MISMATCH!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!News.Dal.Ca!news.litech.org!news.etla.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: Specifying an `--RTS` option in a GPR file, for a runtime library Date: Tue, 16 Apr 2013 00:28:35 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: ktciBqLz6ob8rMVqQBo7NA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-04-16T00:28:35+02:00 List-Id: Here is something to check, which may explain why GNATMake and GPRBuild = = behave so differently. http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html In section =E2=80=9C1.5.2 Using Library Projects=E2=80=9D (documentation says) > All ALI files will also be copied from the objectdirectory to the = > library directory. To build executables,gnatmake will use the library = = > rather than the individualobject files. That's about use of library projects, but a runtime is a kind of library= = after=E2=80=91all. Le Mon, 15 Apr 2013 13:22:27 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > I tried with GNATMake, although it seems to not understand the project= = > file (it compiles files, but does not link an executable), I still tri= ed. > > * say `runtime` is in . If I run GNATMake from to > compile a `test.adb` file in too, seems to be OK > with the `--RTS=3Druntime` option. > * say a directory `source-test` is in and a `test.gpr` > is in , then it's not OK anymore, it says the `--RTS=3Drunti= me` > is not valid and is missing `adainclude` and `adalib`. > * With the same as above, but with an absolute path given > for the argument of the RTS options, GNATMake does not > complain any more. > > Trying the second and the third with GPRBuild, it complains in both ca= se = > (with either an absolute or relative path). The only way seems to = > specifically assign `ADA_INCLUDE_PATH` and `ADA_OBJECTS_PATH` = > environment variables, but this can't be done from a GPR file (or is s= o, = > I don't know how to do). -- = =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