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: 103376,12c54a0f5a27d882 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Charmed Snark Newsgroups: comp.lang.ada Subject: Re: Autoconf & gnat Help Needed Date: Wed, 21 Apr 2010 20:31:14 +0000 (UTC) Organization: The Snarky Insanitorium Message-ID: References: Injection-Date: Wed, 21 Apr 2010 20:31:14 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="30186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+s1I1BIxg4VqHwW0dVfLdHTNt4LCL1s0g=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:lrGoVIlO4oQ+fD1oXD1wxasqVdg= Xref: g2news2.google.com comp.lang.ada:11093 Date: 2010-04-21T20:31:14+00:00 List-Id: Warren expounded in news:Xns9D61A1C47BBBWarrensBlatherings@188.40.43.245: > Has anyone here had experience using GNAT with autoconf/automake? .. > I need to accomplish the same in an automake fashion. I tried > (unsuccessfully) the following: > > z9$(EXE): libz9.a z9-tokens.ads > gnatmake $(AFLAGS) z9.adb > gnatbind -n z9.ali > gnatlink z9.ali ccmain.o --GCC=g++ --LINK=g++ -L. -lz9 ... Ok, I nearly got it now: z9$(EXEEXT): libz9.la z9-tokens.ads gnatmake $(AFLAGS) z9.adb gnatbind -n z9.ali gnatlink z9.ali --GCC=g++ --LINK=g++ -L. -lz9 ... This doesn't see libz9.a, because libtool puts it in ./.libs/libz9.a. I could cheat and refer to that, but I'd prefer to coax libtool into doing the "Right Thing". So I just gotta figure how to get libtool to link this with gnatlink, replacing the "gnatlink" step above. Warren