I have built libshared.so with is dependent on libshared_dependent.so
Now, I am compiling app.bin which is using libshared.so, Now at compile time gcc wants me to specify -lshared_dependent other wise it gives error that some symbols not found.
Is there any way by which, At compile time I don’t need to specify -lshared_dependent, I want that just specifying -lshared works?
You just need to link libshared.so to libshared_dependent.so when you are producing libshared.so.
This way, when you link your app to libshared.so it’ll also link to whatever libshared.so depends on