comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Controlling the linking of shared libraries
Date: Thu, 21 Jul 2011 23:14:30 +0000 (UTC)
Date: 2011-07-21T23:14:30+00:00	[thread overview]
Message-ID: <j0absl$v9p$1@speranza.aioe.org> (raw)
In-Reply-To: 98r7sbFs66U1@mid.individual.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

gnatmake doc says use "-largs <linking options>" 
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 <bjorn@xn--rombobjrn-67a.se> 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




  reply	other threads:[~2011-07-21 23:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-21 18:01 Controlling the linking of shared libraries Björn Persson
2011-07-21 23:14 ` anon [this message]
2011-07-22  6:36 ` Stephen Leake
2011-07-22 23:50   ` Simon Wright
2011-07-24 11:08 ` Björn Persson
2011-07-24 18:03   ` anon
2011-07-24 19:07   ` Project file version: was " anon
2011-07-24 19:13   ` Simon Wright
2011-07-25  1:05     ` anon
2011-07-26  8:18     ` Björn Persson
2011-07-25 11:43   ` Stephen Leake
2011-07-25 12:06     ` Simon Wright
2011-07-25 12:29       ` Dmitry A. Kazakov
2011-07-26  8:19     ` Björn Persson
2011-07-28 10:18       ` Stephen Leake
2011-07-29 22:47         ` Vincent
2011-07-26  9:20 ` Vincent
2011-07-26 23:37   ` Björn Persson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox