Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc

Buildroot aldot at uclibc.org 3 participants 3 messages Aug 21, 2007

lore
Share & tools
lore
#1 lore raw
In reply to aldot at uclibc.org

I'd like to comment on this, if you don't mind.

Quoted 17 lines · aldot at uclibc.org

Log:
- put libstdc++.so into the correct place (usr/lib) and make sure that the dir exists

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

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

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

Quoted 4 lines
buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +1 -0
@@ -333,6 +333,7 @@
 	#
 	# Ok... that's enough of that.
 	#
+	-mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin

^
please remove the dash, because

[man mkdir]
-p, --parents
no error if existing, make parent directories as needed

But if it still fails for any reason, then we want to know and have make stop there. What do you think?

Cheers,

Signature · 1 line
Cristian
#0 lore raw

Author: aldot
Date: 2007-08-21 03:28:43 -0700 (Tue, 21 Aug 2007) New Revision: 19602

Log:
- put libstdc++.so into the correct place (usr/lib) and make sure that the dir exists

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

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

buildroot/toolchain/gcc/gcc-uclibc-3.x.mk +1 -0
@@ -309,6 +309,7 @@
 	#
 	# Ok... that's enough of that.
 	#
+	-mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin
 	touch $@
 
 $(GCC_BUILD_DIR2)/.libs_installed: $(GCC_BUILD_DIR2)/.installed

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

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +2 -1
@@ -333,6 +333,7 @@
 	#
 	# Ok... that's enough of that.
 	#
+	-mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin
 	touch $@
 
 $(GCC_BUILD_DIR2)/.libs_installed: $(GCC_BUILD_DIR2)/.installed
@@ -342,7 +343,7 @@
 	-cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* $(TARGET_DIR)/lib/
 endif
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
-	-cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* $(TARGET_DIR)/lib/
+	-cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* $(TARGET_DIR)/usr/lib/
 endif
 ifeq ($(BR2_INSTALL_LIBGCJ),y)
 	-cp -dpf $(STAGING_DIR)/lib/libgcj.so* $(TARGET_DIR)/lib/
#2 lore raw
In reply to Cristian Ionescu-Idbohrn
Quoted 28 lines · Cristian Ionescu-Idbohrn

I'd like to comment on this, if you don't mind.

Quoted 17 lines · aldot at uclibc.org

Log:
- put libstdc++.so into the correct place (usr/lib) and make sure that the dir exists

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

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

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

Quoted 4 lines
buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +1 -0
@@ -333,6 +333,7 @@
 	#
 	# Ok... that's enough of that.
 	#
+	-mkdir -p $(TARGET_DIR)/usr/lib $(TARGET_DIR)/usr/sbin

^
please remove the dash, because

Quoted 6 lines

[man mkdir]
-p, --parents
no error if existing, make parent directories as needed

But if it still fails for any reason, then we want to know and have make stop there. What do you think?

Fair enough. See r19612