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!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with C Date: Sun, 01 Aug 2010 18:08:58 +0100 Organization: A noiseless patient Spider Message-ID: References: <0ee9eec7-6024-4fb8-8df0-f65c146e4b84@i28g2000yqa.googlegroups.com> <143ef70b-7e74-426b-a621-a5fd157849be@x21g2000yqa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 1 Aug 2010 17:08:59 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="7356"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wZDu8xWESkVtHd194sR+oxsxTbik9Cxw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:5ezyoeOn7M9PYFEK+LM9VhR45jc= sha1:kA+PkKZ06Z4hZ3TY5T5mK+RqF18= Xref: g2news1.google.com comp.lang.ada:12776 Date: 2010-08-01T18:08:58+01:00 List-Id: "John B. Matthews" writes: > 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]. [...] >> 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: Glad it worked! > $ 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; I get the impression this is Mac-specific? Sounds like a good trick, though. > 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 ... I think that while it's under development, maybe a static library would be the Right Thing.