From patchwork Sun Oct 6 20:10:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 280903 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 180052C0090 for ; Mon, 7 Oct 2013 07:10:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2F8938B0DF; Sun, 6 Oct 2013 20:10:31 +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 5B-OjgCdGHih; Sun, 6 Oct 2013 20:10:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2C7E88B0D9; Sun, 6 Oct 2013 20:10:29 +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 1AE211CE6A2 for ; Sun, 6 Oct 2013 20:10:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1665D8AF4B for ; Sun, 6 Oct 2013 20:10:27 +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 aS75TQfyDAuV for ; Sun, 6 Oct 2013 20:10:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from zimbra3.corp.accelance.fr (zimbra3.corp.accelance.fr [213.162.49.233]) by whitealder.osuosl.org (Postfix) with ESMTP id D745F8AE42 for ; Sun, 6 Oct 2013 20:10:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra3.corp.accelance.fr (Postfix) with ESMTP id 01C216A37F for ; Sun, 6 Oct 2013 22:10:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra3.corp.accelance.fr Received: from zimbra3.corp.accelance.fr ([127.0.0.1]) by localhost (zimbra3.corp.accelance.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id svA1lffo2jX7 for ; Sun, 6 Oct 2013 22:10:24 +0200 (CEST) Received: from [192.168.0.12] (gam75-1-81-57-22-125.fbx.proxad.net [81.57.22.125]) by zimbra3.corp.accelance.fr (Postfix) with ESMTPSA id 3EB3869F70 for ; Sun, 6 Oct 2013 22:10:24 +0200 (CEST) Message-ID: <5251C3B0.7090105@openwide.fr> Date: Sun, 06 Oct 2013 22:10:24 +0200 From: Romain Naour User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: buildroot Subject: [Buildroot] [PATCH 1/1] libcap: fix static linking issue 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 Add -fPIC flag Fixes: http://autobuild.buildroot.net/results/619bceb3491ecd2ed4e1ae552fdb237a0ed2fa47/ Signed-off-by: Romain Naour --- package/libcap/libcap.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk index 16afaef..6248fed 100644 --- a/package/libcap/libcap.mk +++ b/package/libcap/libcap.mk @@ -25,10 +25,15 @@ endif # we don't have host-attr HOST_LIBCAP_DEPENDENCIES = +ifeq ($(BR2_PREFER_STATIC_LIB),y) +LIBCAP_LDFLAGS=-fPIC +endif + define LIBCAP_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ LIBATTR=$(LIBCAP_HAVE_LIBATTR) BUILD_CC="$(HOSTCC)" \ - BUILD_CFLAGS="$(HOST_CFLAGS)" + BUILD_CFLAGS="$(HOST_CFLAGS)" \ + LDFLAGS="$(LIBCAP_LDFLAGS)" endef define LIBCAP_INSTALL_STAGING_CMDS