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
  • 102,731
  • 48
  • 279
  • 553

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
  • 102,731
  • 48
  • 279
  • 553