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,15d78a51b0d35cec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!i28g2000prd.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: architecture-independent GNAT project files? Date: Mon, 27 Apr 2009 12:10:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <75e39fab-7501-40fc-b150-73ec3b90c9fe@i28g2000prd.googlegroups.com> References: <75l5ceF18samiU1@mid.individual.net> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1240859410 21301 127.0.0.1 (27 Apr 2009 19:10:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 27 Apr 2009 19:10:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i28g2000prd.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5566 Date: 2009-04-27T12:10:10-07:00 List-Id: On Apr 27, 1:06=A0pm, a...@anon.org (anon) wrote: > You could use: -gnateD on your command line or GPS options list > > =A0 -gnateD? =A0Define or redefine preprocessing symbol, e.g. -gnateDsym= =3Dval > > Where use could set a variable to the architecture path you wish to use > such as for a 32-bit arch > > gnat make =A0-gnateDArchLib=3D"/usr/lib/' =A0 > > =A0 =A0 =A0then for the 64 bit arch use > > gnat make =A0 -gnateDArchLib=3D"/usr/lib64/' =A0 > > -- > -- =A0ArchLib is define in commnd line options. if not present an error > -- =A0will be generated. > -- > =A0 =A0Libs_Path : String :=3D ArchLib ; > > =A0 =A0... > > =A0 =A0open ( File =3D> LibFlile, > =A0 =A0 =A0 =A0 =A0 Name =3D> Libs_Path & FileName, > =A0 =A0 =A0 =A0 =A0 Mode =3D> In_File ) ; This sounds very like the -X flag. I wonder why there are 2 ways of doing the same thing? Oh, -gnatD is a preprocessor flag, sounds like it's for a different purpose? (gnatprep). Personally I use -Xsym=3Dval in Makefiles.