[Zlib-devel] Explicit link to libc
Enrico Weigelt
weigelt at metux.de
Tue Mar 30 12:34:05 EDT 2010
* John Bowler <jbowler at frontiernet.net> schrieb:
> From: Enrico Weigelt
> >just seen that libz is explicitly linked gainst libc (-lc).
> >Isn't this automatically done by the toolchain ?
>
> No, it depends on what $(LDSHARED) is; if it's ld or link the language runtime (in this case the C runtime) must be given explicitly.
What exactly happens when we leave it off ?
Shouldn't libc linked into the final binary nevertheless ?
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