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: Specifying an `--RTS` option in a GPR file, for a runtime library Date: Mon, 15 Apr 2013 15:27:00 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: ktciBqLz6ob8rMVqQBo7NA.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:15009 Date: 2013-04-15T15:27:00+02:00 List-Id: Le Sun, 14 Apr 2013 21:54:20 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > > I can't understand what's wrong, according to > http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Switches-for-gnat= make.html > it should works as follow: > > (documentations says) >> --RTS=3Drts-path >> Specifies the default location of the runtime library.GNAT looks for = = >> the runtime in the following directories,and stops as soon as a valid= = >> runtime is found (adaincludeor ada_source_path, and adalib or = >> ada_object_path present): >> >> /$rts_path >> /$rts_path >> /rts-$rts_path There's something else on the same topic: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Switches-and-Projec= t-Files.html (documentation says) > When using gnatmake with project files, some switches or argumentsmay = be = > expressed as relative paths. As the working directory wherecompilation= = > occurs may change, these relative paths are convertedto absolute paths= . = > For the switches found in a project file, therelative paths are relati= ve = > to the project file directory, for theswitches on the command line, th= ey = > are relative to the directorywhere gnatmake is invoked. The switches f= or = > which this occurs are:-I, -A, -L, -aO, -aL, -aI, as well as all = > arguments that are notswitches (arguments to switch -o, object files = > specified inpackage Linker or after -largs on the command line). The = > exceptionto this rule is the switch =E2=80=93RTS=3D for which a relati= ve path = > argumentis never converted. So there is finally an exception with the `--RTS` option. But that = document talks about GNATMake, not GPRBuild. Also, it says nothing about= = the same option in a project file. (still searching for more material) -- = =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