From patchwork Thu Nov 1 10:15:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 196141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 5A03B2C0323 for ; Thu, 1 Nov 2012 21:16:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 960868D70E; Thu, 1 Nov 2012 10:16:01 +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 o5Ji9P+XWMYm; Thu, 1 Nov 2012 10:16:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7CBA38D64B; Thu, 1 Nov 2012 10:15:59 +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 D778B8F74A for ; Thu, 1 Nov 2012 10:16:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 15F0F8D64B for ; Thu, 1 Nov 2012 10:15:58 +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 umVRLimeXN4s for ; Thu, 1 Nov 2012 10:15:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id 421618D0CF for ; Thu, 1 Nov 2012 10:15:57 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1TTroY-0003Mj-Vc; Thu, 01 Nov 2012 11:15:55 +0100 Received: from arnout by vandecaa-laptop with local (Exim 4.80) (envelope-from ) id 1TTroX-0006Jl-F3; Thu, 01 Nov 2012 11:15:53 +0100 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Thu, 1 Nov 2012 11:15:53 +0100 Message-Id: <1351764953-24251-1-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <50924B99.5080605@mind.be> Subject: [Buildroot] [PATCH] uClibc: install libc.so even if BR2_PREFER_STATIC_LIB is enabled 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net BR2_PREFER_STATIC_LIB _prefers_ static linking, but doesn't force it for all packages. So some binaries may still be built without -static, and they will need libc.so on the target. Therefore, put libc.so.0 in the target unconditionally. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- Untested! toolchain/uClibc/uclibc.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index 397cdd4..65ff90b 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -486,9 +486,7 @@ $(TARGET_DIR)/usr/bin/ldd: $(cross_compiler) PREFIX=$(TARGET_DIR) utils install_utils touch -c $@ -ifneq ($(BR2_PREFER_STATIC_LIB),y) UCLIBC_TARGETS=$(TARGET_DIR)/lib/libc.so.0 -endif ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y) UCLIBC_TARGETS+=uclibc-test