From patchwork Wed Jul 3 13:06:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 256630 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CF80A2C0090 for ; Wed, 3 Jul 2013 23:08:05 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2A5D32C9; Wed, 3 Jul 2013 13:08:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PbUlQpllFT2t; Wed, 3 Jul 2013 13:08:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 930C339C; Wed, 3 Jul 2013 13:08:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2D3808F7B0 for ; Wed, 3 Jul 2013 13:08:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 434BE8B274 for ; Wed, 3 Jul 2013 13:08:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8gQGPPTY325I for ; Wed, 3 Jul 2013 13:07:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from multi.imgtec.com (multi.imgtec.com [194.200.65.239]) by whitealder.osuosl.org (Postfix) with ESMTPS id 298BE8B188 for ; Wed, 3 Jul 2013 13:07:18 +0000 (UTC) From: Markos Chandras To: Date: Wed, 3 Jul 2013 14:06:56 +0100 Message-ID: <1372856816-12493-1-git-send-email-markos.chandras@gmail.com> X-Mailer: git-send-email 1.8.2.1 MIME-Version: 1.0 X-SEF-Processed: 7_3_0_01192__2013_07_03_14_07_15 Subject: [Buildroot] [PATCH v2] Makefile: Symlink lib32 to lib for MIPS64/n32 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Markos Chandras 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 --- 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