[uClibc] Re: uclibc buildroot/ toolchain

Peter S. Mazinger ps.m at gmx.net
Sun Dec 14 23:37:55 UTC 2003


On Sun, 14 Dec 2003, Peter S. Mazinger wrote:

> I had also following scenario (I do not know how to simulate this in a
> glibc env, setlocale() has to be somehow disabled to test):
> clean uClibc environment (no glibc) built w/o locale, rebuilding uClibc w/ 
> locale, if XLOCALE is enabled it will fail, so the only way to get the 
> XLOCALE option is to build already the toolchain with it, afterwards (I 
> mean building for the target) it is too late.

Forget the above part about XLOCALE. Correctly it is:
clean uClibc env (no glibc) built w/o locale, rebuilding uClibc w/ locale, 
binary compatibility remains, you can use the libraries instead of the 
non-locale version. If you want to add XLOCALE, (you definitely need the 
attached ldconfig patch, w/o it you can't build ldconfig, because it uses 
the installed library, not the built one) you loose binary compatibility, 
so the only option for XLOCALE is to enable it already in the toolchain.

I have also attached the patch to remove COMPLETELY_PIC, not needed and 
used, only disturbing.

Peter

---
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
-------------- next part --------------
--- uClibc-0.9.23/extra/Configs/Config.in.mps	Wed Nov 19 15:51:08 2003
+++ uClibc-0.9.23/extra/Configs/Config.in	Wed Nov 19 15:51:25 2003
@@ -164,7 +164,7 @@
 
 config FORCE_SHAREABLE_TEXT_SEGMENTS
 	bool "Only load shared libraries which can share their text segment"
-	depends on BUILD_UCLIBC_LDSO && UCLIBC_COMPLETELY_PIC
+	depends on BUILD_UCLIBC_LDSO
 	default n
 	help
 	  If you answer Y here, the uClibc native shared library loader will
-------------- next part --------------
--- utils/Makefile.mps	2003-12-14 22:50:16.000000000 +0100
+++ utils/Makefile	2003-12-14 22:50:33.000000000 +0100
@@ -53,7 +53,7 @@
 	$(CC) $(CFLAGS) $(XXFLAGS) -Wl,-s -static \
 		-DUCLIBC_RUNTIME_PREFIX=$(R_PREFIX) \
 		-DUCLIBC_LDSO=$(UCLIBC_LDSO) -I. -I../ldso/include \
-		$^ -o $@ $(LDADD_LIBFLOAT)
+		$^ -o $@ $(LDADD_LIBFLOAT) -L../lib
 	$(STRIPTOOL) -x -R .note -R .comment $@
 
 ldd:	ldd.c


More information about the uClibc mailing list