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,df7cea30536a085f 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!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Controlling the linking of shared libraries Date: Sun, 24 Jul 2011 20:13:35 +0100 Organization: A noiseless patient Spider Message-ID: References: <98r7sbFs66U1@mid.individual.net> <992cqbFm9mU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="9434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EOatWhcWoV+QMGSs8Ak7NsDXTI6rnnEw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:+9E4s/689OHeXvP2JepUd2DQDzw= sha1:CHLbpOkpexWIkX/7ySiqt/7FSNw= Xref: g2news1.google.com comp.lang.ada:20338 Date: 2011-07-24T20:13:35+01:00 List-Id: 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!)