All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] Makefile: Symlink lib32 to lib for MIPS64/n32
@ 2013-07-03 13:06 Markos Chandras
  2013-07-09 10:26 ` Markos Chandras
  2013-07-11  9:24 ` Thomas De Schampheleire
  0 siblings, 2 replies; 16+ messages in thread
From: Markos Chandras @ 2013-07-03 13:06 UTC (permalink / raw)
  To: buildroot

From: Markos Chandras <markos.chandras@imgtec.com>

gcc hardcodes the uClibc interpreter for MIPS64/n32 as follows:
(gcc-4.7.3, gcc/config/mips/linux64.h):
define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"

However, buildroot always creates the $(TARGET_DIR)/lib,
$(TARGET_DIR)/usr/lib, $(STAGING_DIR)/lib and
$(STAGING_DIR)/usr/lib directories, therefore for consinstency
reasons, we create a lib32->lib symlink to fix the interpreter
problems for MIPS64/n32.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
Changes since v1:
http://lists.busybox.net/pipermail/buildroot/2013-July/074586.html
- drop pushd/popd
- Create symlinks for the STAGING_DIR as well
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 509eab6..31c41e4 100644
--- a/Makefile
+++ b/Makefile
@@ -436,6 +436,13 @@ $(BUILD_DIR)/.root:
 		--exclude .hg --exclude=CVS --exclude '*~' \
 		$(TARGET_SKELETON)/ $(TARGET_DIR)/
 	cp support/misc/target-dir-warning.txt $(TARGET_DIR_WARNING_FILE)
+ifeq ($(BR2_MIPS_NABI32),y)
+	ln -sfn lib $(TARGET_DIR)/lib32
+	ln -sfn lib $(TARGET_DIR)/usr/lib32
+	ln -sfn lib $(STAGING_DIR)/lib32
+	ln -sfn lib $(STAGING_DIR)/usr/lib32
+
+endif
 	touch $@
 
 $(TARGET_DIR): $(BUILD_DIR)/.root
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-07-20 10:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03 13:06 [Buildroot] [PATCH v2] Makefile: Symlink lib32 to lib for MIPS64/n32 Markos Chandras
2013-07-09 10:26 ` Markos Chandras
2013-07-11  9:24 ` Thomas De Schampheleire
2013-07-11 10:59   ` Thomas Petazzoni
2013-07-11 11:08     ` Markos Chandras
2013-07-11 11:18       ` Thomas De Schampheleire
2013-07-11 11:22         ` Markos Chandras
2013-07-11 13:40           ` Thomas Petazzoni
2013-07-11 14:00             ` Markos Chandras
2013-07-11 14:07               ` Thomas Petazzoni
2013-07-11 14:30                 ` Markos Chandras
2013-07-11 14:19               ` Thomas De Schampheleire
2013-07-11 14:31                 ` Markos Chandras
2013-07-12  8:10                 ` Thomas Petazzoni
2013-07-14 22:07                   ` Markos Chandras
2013-07-20 10:27                     ` Markos Chandras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.