Skip to contentSkip to conversation

libgcc_s still missing

PATCH RESEND New Lars Munch 2 participants 2 messages Nov 15, 2006 – Nov 16, 2006

lore
Share & tools
lore

Lars Munch

author
#0 lore raw

PATCH RESEND 1/1 libgcc_s still missing

Hi All

This patch got ignored the first time, so here it is again:

The BR2_GCC_SHARED_LIBGCC fix does not fix all BR2_GCC_SHARED_LIBGCC related issues.

buildroot/toolchain/gcc/gcc-uclibc-3.x.mk:
------------------------------------------------------------------------
r16442 | jacmet | 2006-10-26 17:15:08 +0200 (Thu, 26 Oct 2006) | 1 line

Fix missing libgcc_s.so.1 with BR2_GCC_SHARED_LIBGCC
------------------------------------------------------------------------

If I delete my build_ARCH/root directory and run "make", the library files libgcc_s* are missing again.

The attached patch makes sure that libgcc_s.so.1 and friends always gets installed in TARGET_DIR.

Regards
Lars Munch

-------------- next part --------------

toolchain/gcc/gcc-uclibc-3.x.mk +4 -2
Index: buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
===================================================================
@@ -250,6 +250,9 @@
 	#
 	# Ok... that's enough of that.
 	#
+	touch $(GCC_BUILD_DIR2)/.installed
+
+gcc-target-libs: $(GCC_BUILD_DIR2)/.installed
 ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
 	# These are in /lib, so...
 	rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so*
@@ -266,10 +269,9 @@
 	-cp -a $(STAGING_DIR)/usr/lib/security/libgcj.security $(TARGET_DIR)/usr/lib/security/
 	-cp -a $(STAGING_DIR)/usr/lib/security/classpath.security $(TARGET_DIR)/usr/lib/security/
 endif
-	touch $(GCC_BUILD_DIR2)/.installed
 
 gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
-	$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
+	$(GCC_BUILD_DIR2)/.installed gcc-target-libs $(GCC_TARGETS)
 
 gcc-source: $(DL_DIR)/$(GCC_SOURCE)
 
#1 lore raw

PATCH RESEND 1/1 libgcc_s still missing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"LM" == Lars Munch <[email protected]> writes:

Hi Lars,

LM> This patch got ignored the first time, so here it is again:

Huh, I thought I already comitted it, but apparently not.

Sorry about that - it's now checked in as r16536.

Signature · 1 line
Bye, Peter Korsgaard