Search code examples
c++cdynamic-compilation

what does "-Bdynamic" compilation flag does?


I was reading Intel Inspector XE 2013 documentation, and they have mentioned setting of flag "-Bdynamic". Can anyone please tell me what does this flag do ? I have searched the gnu compilation options but have not seen this.

Thanks, Sheeri


Solution

  • assume you have both a shared library: libabc.so and a static library: libabc.a in the same directory referenced by -L and using -labc to specify the library:

    with -Bdynamic it will use libabc.so

    with -Bstatic it will use libabc.a