dlopen() and -pg flag

Sergey Lyubka devnull at uptsoft.com
Wed Dec 3 02:26:42 PST 2003


Absolutely.
thanks, that helps!

On Wed, Dec 03, 2003 at 02:23:18AM -0800, Lev Walkin wrote:
> 
> -pg on your system implies static linking. dlopen() is not available in
> statically linked binaries on FreeBSD and many other systems.
> 
> Consider building your binary dynamic by making sure there is a dynamic
> version of libc with profiling support (something like /usr/lib/libc_p.so).
> 
> Otherwise, there seems to be no obvious way to do it.
> 


More information about the freebsd-hackers mailing list