building glibc 2.3.5 for static linking.
I'm porting glibc 2.3.5 to a new hardware platform on linux 2.6.9, 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 as 'pwd', 'zic' etc it throws error messages related pthread symbols undefined. Does it mean that 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'
---------
Am using following configure flags:
--host=XXXX-linux \
--with-headers=$(KERNEL_HEADERS) \
--enable-add-ons=linuxthreads \
--enable-static-nss \
--disable-shared \
--enable-kernel=$(KERNELVERSION) --prefix= \
--without-f \
--without-tls \
--without-nptl \
--without-__thread
Appreciate any valid feedback.
Thanks,
rekha
Last edited by rekhakp; 04-26-2005 at 12:36 PM.
|