Bitcoin Forum
April 26, 2024, 12:19:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to compile with dynamic option  (Read 340 times)
kapam (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 1


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
1714133969
Hero Member
*
Offline Offline

Posts: 1714133969

View Profile Personal Message (Offline)

Ignore
1714133969
Reply with quote  #2

1714133969
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714133969
Hero Member
*
Offline Offline

Posts: 1714133969

View Profile Personal Message (Offline)

Ignore
1714133969
Reply with quote  #2

1714133969
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!