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: a07f3367d7,15d78a51b0d35cec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Newsgroups: comp.lang.ada Subject: Re: architecture-independent GNAT project files? Date: Tue, 28 Apr 2009 23:41:50 +0200 Message-ID: <75pbgvF19smr0U1@mid.individual.net> References: <75l5ceF18samiU1@mid.individual.net> <75mlktF1979j6U1@mid.individual.net> <7b4268c9-3af5-49ec-ac6a-b5d901d5248c@x1g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: individual.net g3Rc33JVPJAdISw8PT1oIwzegJzqG+gbh+8gCaIWjaA+449WMy Cancel-Lock: sha1:aoztV7CrUcsJ8zq0swEIVmx1BBs= User-Agent: KNode/0.10.9 Xref: g2news2.google.com comp.lang.ada:5602 Date: 2009-04-28T23:41:50+02:00 List-Id: Ludovic Brenta wrote: > Yes. "gcc -v | grep ^Target:" yields the correct information. I > normally use a minimal Makefile to set up such variables from the > environment and then invoke gnatmake, passing it the variables. Neither -m32 nor the setarch command seem to affect the output of "gcc -v". Anyway, I was hoping to avoid putting a wrapper around gnatmake. > It is my understanding that "gcc -m32" invokes the linker in such a > way (i.e. "ld -melf_i386", "ld -mi386linux" or some such) that it > automatically selects /usr/lib64 instead of /usr/lib. Is that not the > case? > > If I'm right, your problem disappars as far as binary libraries go but > still exists for target-dependent source files. I don't know how ld is invoked, but it's not only a matter of finding the right .so file. The ALI files appear to be architecture-specific, and their location is specified in the project file with the Library_ALI_Dir attribute. -- Bj�rn Persson PGP key A88682FD