[Zlib-devel] Explicit link to libc

Enrico Weigelt weigelt at metux.de
Tue Mar 30 18:30:32 EDT 2010


* John Bowler <jbowler at frontiernet.net> schrieb:

Hi,

> >What exactly happens when we leave it off ?
> 
> The link has unresolved references.  It's platform dependent 
> whether or not this is permitted.

hmm, I guess on GNU that'll happen w/ --no-undefined ?

> >Shouldn't libc linked into the final binary nevertheless ?
> 
> No, if the unresolved references are permitted then an attempt 
> to resolve each one *may* be made at run time. The resultant 
> symbol doesn't necessarily come from 'libc'...

IMHO there's a global symbol namespace per process, so if the 
resulting binary is linked against libc, that'll also affect
the linked-in zlib ... or maybe I'm totally wrong ?


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------




More information about the Zlib-devel mailing list