[PATCH 1/2] static build: fix internal locking weaks to get pulled in always

Roman I Khimov khimov at altell.ru
Fri May 7 14:51:48 UTC 2010


В сообщении от Пятница 07 мая 2010 18:19:19 автор Timo Teras написал:
> Linker is smart and does not pull in weaks.os, ever. This happens
> because that compilation unit does not get strong references and
> ld eliminates dead code. We really need the weaks for static build
> in a compilation unit that is always there, otherwise it won't work.
> 
> Signed-off-by: Timo Teras <timo.teras at iki.fi>

Acked-by: Roman I Khimov <khimov at altell.ru>

if that matters.

I build GRUB as static app for my x86_64 setup so that I don't have to install 
32-bit libs and after switching to current uclibc was forced to use ugly "--
whole-archive" workaround. This allowed me to kill it.


More information about the uClibc mailing list