On Fri, May 7, 2010 at 4:19 PM, Timo Teras <[email protected]> wrote: > 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 <[email protected]>
Broke the build with attached .config:
CC libc/misc/internals/__uClibc_main.o
libc/misc/internals/__uClibc_main.c:79: error: expected ')' before '*' token
libc/misc/internals/__uClibc_main.c:80: error: '__pthread_return_0'
undeclared here (not in a function)
libc/misc/internals/__uClibc_main.c:80: warning: type defaults to
'int' in declaration of '__pthread_mutex_lock'
libc/misc/internals/__uClibc_main.c:81: warning: type defaults to
'int' in declaration of '__pthread_mutex_trylock'
libc/misc/internals/__uClibc_main.c:82: warning: type defaults to
'int' in declaration of '__pthread_mutex_unlock'
libc/misc/internals/__uClibc_main.c:85: error: expected identifier or
'(' before 'void'
libc/misc/internals/__uClibc_main.c:85: error: expected ')' before
numeric constant
libc/misc/internals/__uClibc_main.c:92:68: error: macro
"_pthread_cleanup_push_defer" passed 3 arguments, but takes just 1
libc/misc/internals/__uClibc_main.c:93: error: expected '=', ',', ';',
'asm' or '__attribute__' before '{' token
libc/misc/internals/__uClibc_main.c:100:43: error: macro
"_pthread_cleanup_pop_restore" passed 2 arguments, but takes just 1
libc/misc/internals/__uClibc_main.c:101: error: expected '=', ',',
';', 'asm' or '__attribute__' before '{' token
make: *** [libc/misc/internals/__uClibc_main.o] Error 1
.config
Description: Binary data
_______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
