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!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sun, 01 Aug 2010 06:47:19 -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:12769 Date: 2010-08-01T06:47:19-04:00 List-Id: In article , Simon Wright wrote: > I've taken the plunge and started a SourceForge project for this. > It's at http://sourceforge.net/projects/gnat-math-extn/ -- under "Ada > 2005 Math Extensions", click on [Develop] then on [Code]. > > I've chosen to use Mercurial (Hg) as the VCS, mainly to get a > real-world feel for using a DVCS (Distributed Version Control > System). To downoad the code, you'll need to install Hg - > http://mercurial.selenic.com/ - because I haven't actually made a > code release yet! > > If anyone feels moved to join in, just say (of course you need a SF > account to update the SF repository, but with Hg it should be > possible to work via patchsets .. ) I just wanted to report success and offer a small patch: it seems to makes a considerable difference in the executable size: $ hg diff diff -r aac8ba7708e2 test/test_extensions.gpr --- a/test/test_extensions.gpr Sat Jul 31 17:09:42 2010 +0100 +++ b/test/test_extensions.gpr Sun Aug 01 06:33:33 2010 -0400 @@ -37,4 +37,8 @@ for Default_Switches ("ada") use ("-E"); end Binder; + package Linker is + for Default_Switches ("ada") use ("-dead_strip"); + end Linker; + end Test_Extensions; 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. -- John B. Matthews trashgod at gmail dot com