how to find out the linker flags used while building a library #197
-
I can get the compilation database by running I was wondering how can I find out the linker options used when building a shared library (for example libboost_filesystem.so). Is there a way to emit the compilation/linking commands when using b2? |
Beta Was this translation helpful? Give feedback.
Answered by
grafikrobot
Oct 22, 2022
Replies: 1 comment
-
You can use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
the-shank
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
-d2
option (see https://www.bfgroup.xyz/b2/manual/release/index.html#bbv2.overview.invocation.options) to display the commands that are executed. If you want the commands without actually executing them you can also use the-n
option.