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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45d5a321269b1030 X-Google-Attributes: gid103376,public From: Meskovic Zlatko Subject: Re: gnat3.07 on AIX4.1.4: link problems Date: 1996/12/16 Message-ID: <32B502FC.41C6@ubs.com>#1/1 X-Deja-AN: 204360611 references: <32B00C9A.41C6@ubs.com> <01bbe8ce$b6813a50$262a6282@cln49ae> content-type: text/plain; charset=us-ascii organization: Union Bank of Switzerland mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.01 (X11; I; AIX 1) Date: 1996-12-16T00:00:00+00:00 List-Id: Pascal Obry wrote: > > ... > > 1) first solution > I did not try this > 2) second solution (the best) > > There is a specs file under /.../lib/gcc-lib/.../2.7.2/. > > In this file you'll find a section *startfile: that say which startup file > to link with. You must use a variable to switch between crt0 and crt0_r. > The line after *startfile: should read like this : > > %{mcrtr:crt0_r%O%s} %{!mcrtr:crt0%O%s} > > This mean that if crtr is defined then use crtO_r.o else use crt0.o > > Now you must call gnatmake like this : > > > gnatmake hello -largs -mcrtr > I tried this one, and it works. Where is a description of this specs file ? thank you pascal zlatko -- Zlatko B. Meskovic Union Bank of Switzerland Bahnhofstrasse 41 CH-8021 Zuerich Email: zlatko.meskovic@ubs.com Phone: +41 - 236 82 50 FAX: +41 - 236 94 40