From patchwork Mon Jul 1 10:51:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markos Chandras X-Patchwork-Id: 256084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 6B7432C0095 for ; Mon, 1 Jul 2013 20:51:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0D346A01DC; Mon, 1 Jul 2013 10:51:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QBsehMKq3bUs; Mon, 1 Jul 2013 10:51:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5B5C6A01CF; Mon, 1 Jul 2013 10:51:40 +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 1C7AC8F75E for ; Mon, 1 Jul 2013 10:51:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 03BB18B079 for ; Mon, 1 Jul 2013 10:51:43 +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 lqdS90bnmUO8 for ; Mon, 1 Jul 2013 10:51:38 +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 0BAD58AD18 for ; Mon, 1 Jul 2013 10:51:33 +0000 (UTC) From: Markos Chandras To: Date: Mon, 1 Jul 2013 11:51:24 +0100 Message-ID: <1372675884-963-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_01_11_51_29 Subject: [Buildroot] [PATCH] 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 and $(TARGET_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 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c514e4f..0059d0c 100644 --- a/Makefile +++ b/Makefile @@ -436,6 +436,12 @@ $(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) + pushd $(TARGET_DIR) > /dev/null 2>&1; \ + ln -sfn lib lib32; \ + ln -sfn lib usr/lib32; \ + popd > /dev/null 2>&1 +endif touch $@ $(TARGET_DIR): $(BUILD_DIR)/.root