libpthread- glibc 2.3.5-building
I'm porting glibc 2.3.5 to a new platform, one of our requirement is to build glibc static only, I mean -disable-shared. It means only "*.a" libraries will be created. Last time I built glibc 2.2.x where I could build all libs with -disable-shared flag in configure command, this time with glibc 2.3.5 while building modules such pwd, zic etc it throws error messages related pthread symbols undefined. Does it mean I cannot build pthread for static linking?
Example error messages
libc.a(setenv.o): In function `D.L_DL26':
setenv.o(.text+0x52c): undefined reference to `__pthread_mutex_unlock'
setenv.o(.text+0x530): undefined reference to `__pthread_mutex_unlock'
setenv.o(.text+0x54c): undefined reference to `__pthread_mutex_unlock'
setenv.o(.text+0x554): undefined reference to `__pthread_mutex_unlock'
libc.a(vfwprintf.o): In function `D.L_DL67':
vfwprintf.o(.text+0x1268): undefined reference to `_pthread_cleanup_push_defer'
vfwprintf.o(.text+0x126c): undefined reference to `_pthread_cleanup_push_defer'
vfwprintf.o(.text+0x12ec): undefined reference to `_pthread_cleanup_push_defer'
vfwprintf.o(.text+0x12f0): undefined reference to `_pthread_cleanup_push_defer'
Appreciate any valid feedback.
Thanks,
rekha
|