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,c1bdceb867926fdb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sun, 01 Aug 2010 21:08:24 -0400 Organization: The Wasteland Message-ID: References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news1.google.com comp.lang.ada:12795 Date: 2010-08-01T21:08:24-04:00 List-Id: In article , Simon Wright wrote: [...] > > + package Linker is > > + for Default_Switches ("ada") use ("-dead_strip"); > > + end Linker; > > I get the impression this is Mac-specific? Sounds like a good trick, > though. Looking closer, I see it's listed among the "Darwin Options". > > With GNAT 4.3.4 (FSF), I had to build with Library_Kind "static" > > before I could build with "dynamic". For some reason, the dylib > > appears in ../src/.build/ instead of ../lib/. I think that's a bug > > in the older version that I've also seen building GtkAda. > > It's OK on GCC 4.5.0 & GNAT GPL 2010. > > Do you really mean you had to build with "static" *before* "dynamic"? > weird ... Yes, building "static" puts an archive (.a) in the expected place (../lib/), where a subsequent "dynamic" build apparently uses it. > I think that while it's under development, maybe a static library > would be the Right Thing. Maybe, as -g is in use. On a related note, the project builds and runs correctly on Ubuntu 10.04 using GNAT 4.4.3 (FSF), Mercurial 1.4.3, blas 1.2, and lapack 3.2.1. -- John B. Matthews trashgod at gmail dot com