From patchwork Thu Mar 16 14:23:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Grandegger X-Patchwork-Id: 739841 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vkW1J3Z97z9rvt for ; Fri, 17 Mar 2017 01:23:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 79B392FACF; Thu, 16 Mar 2017 14:23:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zOPlktl+67rY; Thu, 16 Mar 2017 14:23:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 89CBF2A192; Thu, 16 Mar 2017 14:23:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9913F1C04A5 for ; Thu, 16 Mar 2017 14:23:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 969EA89E0A for ; Thu, 16 Mar 2017 14:23:40 +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 rOM1O7swTxoM for ; Thu, 16 Mar 2017 14:23:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailproxy03.manitu.net (mailproxy03.manitu.net [217.11.48.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0542089E01 for ; Thu, 16 Mar 2017 14:23:39 +0000 (UTC) Received: from onex.fritz.box (aftr-88-217-180-211.dynamic.mnet-online.de [88.217.180.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wg@grandegger.com) by mailproxy03.manitu.net (Postfix) with ESMTPSA id 788CAD4920C; Thu, 16 Mar 2017 15:23:37 +0100 (CET) From: Wolfgang Grandegger To: buildroot@buildroot.org Date: Thu, 16 Mar 2017 15:23:22 +0100 Message-Id: <1489674207-6876-5-git-send-email-wg@grandegger.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489674207-6876-1-git-send-email-wg@grandegger.com> References: <1489674207-6876-1-git-send-email-wg@grandegger.com> Cc: Wolfgang Grandegger Subject: [Buildroot] [RFC PATCH v2 4/9] core: sanitize RPATH in host tree at the very end of the build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" We need the patchelf host utility to check and fix the rpath. Signed-off-by: Wolfgang Grandegger --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index fb2c235..41d100e 100644 --- a/Makefile +++ b/Makefile @@ -543,7 +543,12 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BR2_CONFIG) prepare: $(BUILD_DIR)/buildroot-config/auto.conf +# We need patchelf for RPATH sanitation +PACKAGES += host-patchelf + world: target-post-image + @$(call MESSAGE,"Rendering the SDK relocatable") + $(TOPDIR)/support/scripts/fix-rpath host .PHONY: all world toolchain dirs clean distclean source outputmakefile \ legal-info legal-info-prepare legal-info-clean printvars help \