Use --export-dynamic instead of -rdynamic

| | Comments (2) | TrackBacks (0)

executable에 symbol A가 있고 shared library에서 symbol A를 사용하고, executable이 shared library를 dynamic loading (with dlopen()) 할 경우, executable의 symbol을 shared library에게 노출(export)해주려면 GNU ld의 --export-dynamic이라는 option을 사용하여야 한다. -rdynamic이 같은 역할을 하는 옵션이지만, manual에 나오지 않는 걸로 봐서 deprecated된 것으로 보인다.

BSD 계열의 native linker쪽에서 -rdynamic을 사용하던가?

다음 URL을 참고할 것.

http://www.cygwin.com/ml/cygwin/2001-03/msg01895.html
http://www.mail-archive.com/perl5-build@perl.org/msg00108.html

0 TrackBacks

Listed below are links to blogs that reference this entry: Use --export-dynamic instead of -rdynamic.

TrackBack URL for this entry: http://lastmind.net/mt/mt-tb.cgi/69

음. 난 지금까지 rdynamic을 사용했었는데... manual 에 안나오나? =_=;;

Leave a comment

About this Entry

This page contains a single entry by Joseph Jang published on September 23, 2004 3:50 PM.

time-to-adapt was the previous entry in this blog.

Log file analyzer (esp. for web server) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.21-en