0

nvlink can be given search paths for libraries with the -L <path> option, and a bunch of libraries to consider with -lmylib1 -lmiylib2 etc.

Can nvlink be made to list the (full paths of the) libraries it actually used during linking?

einpoklum
  • 118,144
  • 57
  • 340
  • 684

1 Answers1

1

Not directly, but you can (on GNU/Linux) use the ltrace or strace utilities and determine all files which nvlink opened. This is a superset of what it actually used, but it's better than just "some files in directory ".

einpoklum
  • 118,144
  • 57
  • 340
  • 684