Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc

Buildroot ulf at uclibc.org 3 participants 3 messages Jul 7, 2007 – Sep 3, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-07-07 05:28:25 -0700 (Sat, 07 Jul 2007) New Revision: 19020

Log:
Avoid stripping scripts

Modified:
trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk

Changeset:
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +5 -9
@@ -247,17 +247,13 @@
 		mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/" ; \
 		rmdir "$(STAGING_DIR)/lib64" ; \
 	fi
+	# Move gcc bug reporting script out of path of real executables
+	mv -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccbug \
+		$(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-gccbug
 	# Strip the host binaries
 ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-	if [ -e $(STAGING_DIR)/usr/bin/*-gccbug ] ; then \
-		mkdir -p "$(STAGING_DIR)/tmp" ; \
-		mv $(STAGING_DIR)/usr/bin/*-gccbug  $(STAGING_DIR)/tmp ; \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-		mv $(STAGING_DIR)/tmp/*-gccbug $(STAGING_DIR)/usr/bin ; \
-		rmdir "$(STAGING_DIR)/tmp" ; \
-	else \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-	fi
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-*
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/faked
 endif
 	# Make sure we have 'cc'.
 	if [ ! -e $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ] ; then \
#1 lore raw
Quoted 26 lines · ulf at uclibc.org

Author: ulf
Date: 2007-07-07 05:28:25 -0700 (Sat, 07 Jul 2007) New Revision: 19020

Log:
Avoid stripping scripts

Modified:
trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk

Changeset:
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +3 -1
@@ -247,17 +247,13 @@
 		mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/" ; \
 		rmdir "$(STAGING_DIR)/lib64" ; \
 	fi
+	# Move gcc bug reporting script out of path of real executables
+	mv -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccbug \
+		$(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-gccbug
 	# Strip the host binaries
 ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-	if [ -e $(STAGING_DIR)/usr/bin/*-gccbug ] ; then \

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk line 256

Quoted 10 lines
buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +2 -8
-		mkdir -p "$(STAGING_DIR)/tmp" ; \
-		mv $(STAGING_DIR)/usr/bin/*-gccbug  $(STAGING_DIR)/tmp ; \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-		mv $(STAGING_DIR)/tmp/*-gccbug $(STAGING_DIR)/usr/bin ; \
-		rmdir "$(STAGING_DIR)/tmp" ; \
-	else \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-	fi
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-*
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/faked

Ulf, please explain why you introduced this bug? WTH is faked doing in gcc? I urge you to fix this..

#2 lore raw

l?r 2007-09-01 klockan 20:43 +0200 skrev Bernhard Fischer:

Quoted 32 lines · ulf at uclibc.org
Quoted 31 lines

Author: ulf
Date: 2007-07-07 05:28:25 -0700 (Sat, 07 Jul 2007) New Revision: 19020

Log:
Avoid stripping scripts

Modified:
trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk

Changeset:
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +3 -6
@@ -247,17 +247,13 @@
 		mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/" ; \
 		rmdir "$(STAGING_DIR)/lib64" ; \
 	fi
+	# Move gcc bug reporting script out of path of real executables
+	mv -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccbug \
+		$(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-gccbug
 	# Strip the host binaries
 ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-	if [ -e $(STAGING_DIR)/usr/bin/*-gccbug ] ; then \
-		mkdir -p "$(STAGING_DIR)/tmp" ; \
-		mv $(STAGING_DIR)/usr/bin/*-gccbug  $(STAGING_DIR)/tmp ; \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-		mv $(STAGING_DIR)/tmp/*-gccbug $(STAGING_DIR)/usr/bin ; \
-		rmdir "$(STAGING_DIR)/tmp" ; \
Quoted 8 lines

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk line 256

Quoted 5 lines
buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +2 -3
-	else \
-		-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/* ; \
-	fi
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-*
+	-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/faked

Ulf, please explain why you introduced this bug? WTH is faked doing in gcc? I urge you to fix this..

Previously it would strip "$(STAGING_DIR)/usr/bin/*" '*' would also strip faked (if present)

I "fixed" the gccbug stuff by renaming it,and then only stripped $(REAL_GNU_TARGET_NAME)-*

To maintain compatability with the previous implementation. I also stripped faked.

Your filter-out is better, so I removed the rename and removed the strip of faked.

Signature · 2 lines
Best Regards,
Ulf Samuelsson