Bitcoin Forum
May 10, 2024, 04:20:15 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 341 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
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715358015
Hero Member
*
Offline Offline

Posts: 1715358015

View Profile Personal Message (Offline)

Ignore
1715358015
Reply with quote  #2

1715358015
Report to moderator
1715358015
Hero Member
*
Offline Offline

Posts: 1715358015

View Profile Personal Message (Offline)

Ignore
1715358015
Reply with quote  #2

1715358015
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!