3

I have a static library in Linux that depends on some dynamic libraries (GL and SDL2). At link time, I want those to link automatically without needing to pass more arguments to the linker (gcc in my case). I saw a solution that adds a special file into the library named __.LIBDEP by passing -l to ar but it's not an elegant solution as it adds more arguments when linking (hint the dynamic library dependencies in the archive file).

Moldytzu
  • 76
  • 4

0 Answers0