Bitcoin Forum
November 14, 2018, 09:03:23 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to compile with dynamic option  (Read 251 times)
kapam
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
November 12, 2017, 10:28:24 AM
 #1

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.  Shocked

Thanks in advance
1542229403
Hero Member
*
Offline Offline

Posts: 1542229403

View Profile Personal Message (Offline)

Ignore
1542229403
Reply with quote  #2

1542229403
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1542229403
Hero Member
*
Offline Offline

Posts: 1542229403

View Profile Personal Message (Offline)

Ignore
1542229403
Reply with quote  #2

1542229403
Report to moderator
1542229403
Hero Member
*
Offline Offline

Posts: 1542229403

View Profile Personal Message (Offline)

Ignore
1542229403
Reply with quote  #2

1542229403
Report to moderator
floaks
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile WWW
November 27, 2017, 09:05:50 AM
 #2

G++ / GCC have -rdynamic flag. This will pass the --export-dynamic to the linker.
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

So you can use it like:

Code:
gcc -rdynamic


Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!