comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: GPR: project hierarchy and file names
Date: Thu, 19 Aug 2010 09:07:11 +0200
Date: 2010-08-19T09:07:11+02:00	[thread overview]
Message-ID: <op.vhobd9lxule2fv@garhos> (raw)
In-Reply-To: op.vhn01xw4ule2fv@garhos

Le Thu, 19 Aug 2010 05:23:47 +0200, Yannick Duchêne (Hibou57)  
<yannick_duchene@yahoo.fr> a écrit:

Tip about foreign object files.

An interesting detail I've noticed while trying to setup this project  
hierarchy: it seems using “pragma Linker_Options ("...")” is not the best  
thing to do, not resilient. Until now I always did this way to link to  
foreign object files, but this was not working anymore, because building  
 from the topmost project, at link stage, GCC was unable to find these  
object files (which was not automatically moved as I first supposed).

Better place it in a library linker options (and turn the project into a  
library).

I may guess it work like this: with a Linker_Options given as a pragma in  
a source file, the linked object file path is relative to the topmost  
project, whatever is the location of the source file containing the  
Linker_Options pragma; while with a linker option given in a project file,  
it is always relative to the original project file. The latter is neatly  
easier to handle.



      parent reply	other threads:[~2010-08-19  7:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19  3:23 GPR: project hierarchy and file names Yannick Duchêne (Hibou57)
2010-08-19  7:03 ` Dmitry A. Kazakov
2010-08-19  7:20   ` Yannick Duchêne (Hibou57)
2010-08-19  7:31     ` Pascal Obry
2010-08-19  7:42       ` Dmitry A. Kazakov
2010-08-19  8:35         ` Yannick Duchêne (Hibou57)
2010-08-19  7:50     ` Dmitry A. Kazakov
2010-08-19  8:41       ` Yannick Duchêne (Hibou57)
2010-08-19  8:54         ` Dmitry A. Kazakov
2010-08-19  7:07 ` Yannick Duchêne (Hibou57) [this message]
replies disabled

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