From patchwork Thu Feb 6 14:53:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Hundeb=C3=B8ll?= X-Patchwork-Id: 1234390 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=geanix.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=geanix.com header.i=@geanix.com header.a=rsa-sha256 header.s=first header.b=aTT/8Nz6; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48D1fc2rRmz9sP7 for ; Fri, 7 Feb 2020 01:54:12 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4EFF8186D; Thu, 6 Feb 2020 15:54:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=geanix.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=geanix.com header.i=@geanix.com header.b="aTT/8Nz6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E43081873; Thu, 6 Feb 2020 15:54:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from first.geanix.com (first.geanix.com [116.203.34.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DBFF081844 for ; Thu, 6 Feb 2020 15:54:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=martin@geanix.com Received: from zen.localdomain (unknown [85.184.140.241]) by first.geanix.com (Postfix) with ESMTPSA id 8C5C9B1D8D; Thu, 6 Feb 2020 14:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1581000821; bh=eL/dTo24nL+uxxzdbPuLdu5g04sTxHHf1zw91i8sneg=; h=From:To:Cc:Subject:Date; b=aTT/8Nz6fjxAQaBd7CmBFukfsmq8PnBBK8jBv/jLLacP0Rfv4fMHfeoyvgF3DZ4MW oFof74ftIl6YNOc0t7GIeXzzQVxUzvQyrbkURPLXoP/de3r0BTXtIzQfRtJ/PtqP34 zrOpzqI4l02RHTZo7aLNf4PukSi3OcWp+6YciN6YabjuZIKZ4vR6k2btCspTGAFnlM kGV77dR9XYz+0cI3C7RKaSwA36MLwGHY5c+E12+ZeSzcv6xbO7U/abzlkKq2McVtXG iHHLdD+D5mT/G3kbT1u3hMbTGt03R32qhua1mYuWiIkGRvHXirW7AGGB+Xr39pXSCp k4m/wmHHbTfTw== From: =?utf-8?q?Martin_Hundeb=C3=B8ll?= To: u-boot@lists.denx.de Subject: [PATCH] tools: env: enable PIC for static library Date: Thu, 6 Feb 2020 15:53:55 +0100 Message-Id: <20200206145355.2161120-1-martin@geanix.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean External projects wanting to embed the static library needs it to be position independent. Signed-off-by: Martin Hundebøll --- tools/env/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/env/Makefile b/tools/env/Makefile index b627796e94..2444269de7 100644 --- a/tools/env/Makefile +++ b/tools/env/Makefile @@ -13,6 +13,7 @@ HOST_EXTRACFLAGS = -I$(srctree)/tools \ $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \ -idirafter $(srctree)/tools/env \ -DUSE_HOSTCC \ + -fPIC \ -DTEXT_BASE=$(TEXT_BASE) ifeq ($(MTD_VERSION),old)