1

I have a static library 'a' that is used by a shared library 'b'. This shared library is linked with --export-dynamic, so as I understand it exports the symbols in 'a' too. Now, I have a shared library 'c' that is linked with both 'a' and 'b'. I want library 'a' to have higher "priority" while linking, so its exported symbols through 'c' are ignored (i.e. I don't depend on 'b' for the functionality in 'a'). Is it possible? I did some experiments to put the static library before the the shared one when linking, but it works only "sometimes".

jj99
  • 300
  • 1
  • 11

0 Answers0