Print full paths of libraries used when linking?

  • Follow


Hi!

Does anyone know if it possible to print/show the full paths of
libraries that is used
during linking? I am using a gcc cross compiler.

Instead of  "-lc" "-lgcc" "-lmy_lib" etc. I would like to see the
full
paths of all the libraries used during the linking stage.

Brs,
Markus
0
Reply dspfun (158) 1/24/2012 7:10:36 AM

On 24.1.12 9:10 , dspfun wrote:
> Hi!
>
> Does anyone know if it possible to print/show the full paths of
> libraries that is used
> during linking? I am using a gcc cross compiler.
>
> Instead of  "-lc" "-lgcc" "-lmy_lib" etc. I would like to see the
> full
> paths of all the libraries used during the linking stage.
>
> Brs,
> Markus

They are on the link map, which you can request with
the "-Wl,-Map=myfile.map" switch.

For details, see GCC and binutils (ld) manuals.

-- 

Tauno Voipio

0
Reply tauno.voipio3 (226) 1/24/2012 8:40:31 AM


1 Replies
86 Views

(page loaded in 0.102 seconds)


Reply: