ARM NPTL support for uClibc

Erik Andersen andersen at codepoet.org
Thu Aug 24 18:52:34 PDT 2006


On Fri Aug 25, 2006 at 03:15:37AM +0200, Peter S. Mazinger wrote:
> Hello!
> 
> Is there no way to get rid of the libgcc_s.so dependency, the
> uClibc-nptl branch seems not to need it.

Of course there is a way...  Simply build gcc with
--disable-shared rather than --enable-shared and you're all set.

Though this should probably be made into a config option..

--- buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(revision 15806)
+++ buildroot/toolchain/gcc/gcc-uclibc-3.x.mk	(working copy)
@@ -175,7 +175,7 @@
 		--host=$(GNU_HOST_NAME) \
 		--target=$(REAL_GNU_TARGET_NAME) \
 		--enable-languages=$(TARGET_LANGUAGES) \
-		--enable-shared \
+		--disable-shared \
 		--disable-__cxa_atexit \
 		--enable-target-optspace \
 		--with-gnu-ld \
@@ -264,7 +264,7 @@
 	touch -c $(TARGET_DIR)/lib/libgcc_s.so.1
 
 gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
-	$(TARGET_DIR)/lib/libgcc_s.so.1 $(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
+	$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
 
 gcc-source: $(DL_DIR)/$(GCC_SOURCE)
 
@@ -294,7 +294,7 @@
 		--host=$(REAL_GNU_TARGET_NAME) \
 		--target=$(REAL_GNU_TARGET_NAME) \
 		--enable-languages=$(TARGET_LANGUAGES) \
-		--enable-shared \
+		--disable-shared \
 		--with-gxx-include-dir=/usr/include/c++ \
 		--disable-__cxa_atexit \
 		--enable-target-optspace \
 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


More information about the uClibc mailing list