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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,df7cea30536a085f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Controlling the linking of shared libraries Date: Mon, 25 Jul 2011 01:05:59 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <98r7sbFs66U1@mid.individual.net> Reply-To: anon@anon.org NNTP-Posting-Host: HDRs4o/fncFx4PSqgToZhg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news2.google.com comp.lang.ada:21310 Date: 2011-07-25T01:05:59+00:00 List-Id: I testing the project file fot both gnatmake gnat gpbuild it works. In , Simon Wright writes: >Would it be possible to use an amended gprbuild configuration file? Here >on Mac OS X there's an option > > for Shared_Library_Minimum_Switches use > ("-dynamiclib", "-Wl,-flat_namespace", "-shared-libgcc"); > >and you could add your required option in there. > >No good for gnatmake, of course. > >I put in "-Wl,-foo" and rebuilt a shared library, and as expected the >result was > >$ gprbuild -Pbc --config=botched.cgpr >gprlib bc.lexch >/opt/gnat-gpl-2011/bin/g++ \ > -dynamiclib -Wl,-flat_namespace -shared-libgcc -Wl,-foo \ >[...] > >(don't know where g++ came from!)