[Toybox] - Warnings for static build

Georgi Chorbadzhiyski gf at unixsol.org
Wed Sep 25 22:40:44 PDT 2013


On 26.9.2013 г. 08:32, Ashwini Sharma wrote:
> While doing a static build for my ARM board, some warnings are reported
> related to linking.
>
> /tmp/ccY8JVYX.o: In function `do_id':
> id.c:(.text.do_id+0x1b0): warning: Using 'getgrouplist' in statically
> linked applications requires at runtime the shared libraries from the glibc
> version used for linking
> /tmp/ccRV13xP.o: In function `change_identity':
> login.c:(.text.change_identity+0x10): warning: Using 'initgroups' in
> statically linked applications requires at runtime the shared libraries
> from the glibc version used for linking
>
> Any pointers on this.

glibc is not the most suitable library for static linking (as evidenced
by the message you've posted). Try musl - http://www.musl-libc.org/

-- 
Georgi Chorbadzhiyski
http://github.com/gfto/
http://georgi.unixsol.org/

 1380174044.0


More information about the Toybox mailing list