From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id C59911B37D for ; Thu, 12 Oct 2017 15:16:40 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id t69so13123387wmt.2 for ; Thu, 12 Oct 2017 06:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HWX7Qzd0xCFJDFm0VY/gyxhSqPOWopFxSTT0Y9DqAMg=; b=df/U36rJPYRneLlXFXQlt0wN1NShTSBu9+b6uES8X8Se86N9F+H3SLFlDI0/JsnRlA dSbRJXfvZMKPrgBOW/7KneX82VzcrAId4AMk3T04XxYC8Iri/OUB/ml2+75BJTMKja0B JP3qCgcLS4nm/8/9N9W47Lv9t8Lix8+6cYjht7VNsnHloJJsAS99qn8wkkBLvNrdOE8J Y3HieYj/IwJULF3hPHAWK7Li+W6a2/uihXiBzhv4Rdbi/+Uz5QmeiJRT8WxZCWgLBGh/ 8N/c19qnxuxj55veNzq7yRqLEd8LY9/tCRjVDiaOcx9EK1dQoPEXYmZUJAKn7kwINQMJ TTPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HWX7Qzd0xCFJDFm0VY/gyxhSqPOWopFxSTT0Y9DqAMg=; b=eMLS6ztjaOQu5nCfAaKZbnX+ziPTL9sEHU4PdCm9ByzrbfXafV34g1WSbU0ByXrJkE dmup9fzsSSn7y2NNshgCuYXkyQocdNnWQef2D6mTOo+/CWE3vgXG6LzQTBL8foBD5Jgo +IsimfaDLtroBbjBLyul8fXFFoXdDWwQsm60VZ3EDZmcodwl7Q5ArtbBO7EOGbOjWxM+ kMJ0rZns7JzcKFOXf6aBCpM065+R4HfxEpe0p0T2AbKxSbuRA3gXi0jLCHRy8BEAlIyz i3hUjY13I8L9Qol/B0Lek9D1eW0zWQ/fy1faO7Rd/4wvGt13t3xoLvwfNf1W0sKBVGd/ LF9A== X-Gm-Message-State: AMCzsaUtP2i5yxLuyyiAxwL939FN1c/aPCYzBnXl+Y3CWIj0NyN2bysu eHcO4TZ5o9yVLNENMR4yf4XNJkSu X-Google-Smtp-Source: AOwi7QDVIEoOXenXFm18GrmsYcJSiA/6hDMQoTBwjZuPLf9ZQamskaMivfK0WiVh7YA4I5/M4gL2lA== X-Received: by 10.80.141.19 with SMTP id s19mr2928511eds.241.1507814200238; Thu, 12 Oct 2017 06:16:40 -0700 (PDT) Received: from localhost ([213.251.34.151]) by smtp.gmail.com with ESMTPSA id k10sm8527452edi.27.2017.10.12.06.16.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Oct 2017 06:16:39 -0700 (PDT) From: luca.boccassi@gmail.com To: dev@dpdk.org Cc: ferruh.yigit@intel.com, thomas@monjalon.net, Luca Boccassi Date: Thu, 12 Oct 2017 14:15:53 +0100 Message-Id: <20171012131554.1533-6-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171012131554.1533-1-luca.boccassi@gmail.com> References: <20170905205159.8606-1-luca.boccassi@gmail.com> <20171012131554.1533-1-luca.boccassi@gmail.com> Subject: [dpdk-dev] [PATCH v8 5/6] mk: sort object files when building deps lists X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 13:16:40 -0000 From: Luca Boccassi In order to achieve reproducible builds, always use the same order when listing object files to build dependencies lists. Signed-off-by: Luca Boccassi --- mk/rte.app.mk | 4 ++-- mk/rte.hostapp.mk | 4 ++-- mk/rte.shared.mk | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 0b8f6126b..0038a8725 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -283,8 +283,8 @@ LDLIBS_NAMES += $(patsubst -Wl$(comma)-l%,lib%.a,$(filter -Wl$(comma)-l%,$(LDLIB # list of found libraries files (useful for deps). If not found, the # library is silently ignored and dep won't be checked -LDLIBS_FILES := $(wildcard $(foreach dir,$(LDLIBS_PATH),\ - $(addprefix $(dir)/,$(LDLIBS_NAMES)))) +LDLIBS_FILES := $(sort $(wildcard $(foreach dir,$(LDLIBS_PATH),\ + $(addprefix $(dir)/,$(LDLIBS_NAMES))))) # # Compile executable file if needed diff --git a/mk/rte.hostapp.mk b/mk/rte.hostapp.mk index 5cb4909cb..f58173c31 100644 --- a/mk/rte.hostapp.mk +++ b/mk/rte.hostapp.mk @@ -69,9 +69,9 @@ O_TO_EXE_DO = @set -e; \ -include .$(HOSTAPP).cmd # list of .a files that are linked to this application -LDLIBS_FILES := $(wildcard \ +LDLIBS_FILES := $(sort $(wildcard \ $(addprefix $(RTE_OUTPUT)/lib/, \ - $(patsubst -l%,lib%.a,$(filter -l%,$(LDLIBS))))) + $(patsubst -l%,lib%.a,$(filter -l%,$(LDLIBS)))))) # # Compile executable file if needed diff --git a/mk/rte.shared.mk b/mk/rte.shared.mk index 87ccf0ba4..4e680bc03 100644 --- a/mk/rte.shared.mk +++ b/mk/rte.shared.mk @@ -85,8 +85,8 @@ LDLIBS_NAMES += $(patsubst -Wl$(comma)-l%,lib%.a,$(filter -Wl$(comma)-l%,$(LDLIB # list of found libraries files (useful for deps). If not found, the # library is silently ignored and dep won't be checked -LDLIBS_FILES := $(wildcard $(foreach dir,$(LDLIBS_PATH),\ - $(addprefix $(dir)/,$(LDLIBS_NAMES)))) +LDLIBS_FILES := $(sort $(wildcard $(foreach dir,$(LDLIBS_PATH),\ + $(addprefix $(dir)/,$(LDLIBS_NAMES))))) # # Archive objects in .so file if needed -- 2.11.0