what does "-Bdynamic" compilation flag does?

6.4k Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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