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.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PP_MIME_FAKE_ASCII_TEXT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,df7cea30536a085f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder.news-service.com!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Controlling the linking of shared libraries Date: Thu, 21 Jul 2011 23:14:30 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <98r7sbFs66U1@mid.individual.net> Reply-To: anon@anon.org NNTP-Posting-Host: TJ0ISNX6gzzmb3Q+F3zjNA.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:21261 Date: 2011-07-21T23:14:30+00:00 List-Id: gnatmake doc says use "-largs " an example is gnatmake test.adb -largs -Lmylibs one.o which will cause gnatmake to add "mylibs" to the library search directories. And "one.o" object file will be added to the list of object files. Shoukld work for GPBuild as well. In <98r7sbFs66U1@mid.individual.net>, =?UTF-8?B?QmrDtnJu?= Persson writes: >Does anyone know how to pass command line parameters to Gnatmake and >GPRbuild that they should forward to gcc when they invoke gcc as a linker to >build a shared library? -largs seems to be used only when a program is >linked. When a shared library is linked it seems to be ignored. > >-- >Björn Persson >PGP key A88682FD