Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kapam on November 12, 2017, 10:28:24 AM



Title: How to compile with dynamic option
Post by: kapam on November 12, 2017, 10:28:24 AM
I want to trace function calls. it needs to add -rdynamic option to g++ compiler. however, I am unsure where how must add this option to configure file or makefile.  :o

Thanks in advance


Title: Re: How to compile with dynamic option
Post by: floaks on November 27, 2017, 09:05:50 AM
G++ / GCC have -rdynamic flag. This will pass the --export-dynamic to the linker.
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html (https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html)

So you can use it like:

Code:
gcc -rdynamic