From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 5156A995C for ; Fri, 18 Aug 2017 13:03:53 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id z91so9914224wrc.4 for ; Fri, 18 Aug 2017 04:03:53 -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=eLd2G+IKqTuX45G6agMttC1zOYyEG8BG56exofTUANM=; b=IW3sxamMa72IhXy3ntwUsX5psD9wTm7/DRPagWohdq/eKD8fMXazKgMVAgCt3QjZb+ yIjQWJv5PZWCyCao1d8qxjKj2qFVMJRJKkITDjQiaaTb3uITYAuGIafzMaLxVKRUi46V Wkg+DaVN0IqbQkHSwyJHs/uVvGseyci/DjX8GBeoRsnT1OExi+ostSzSKBW7noKuCQap cdoCeprT07kJZ/WO5PVOnHhfKwcm4P7nKCnwpFtBj4PJxjuMCFuQvFVno/MIM1ECKQua +9dWzfk+dFiguoBQmXGnK0ASb+tK8GjVXFmcx+BpXmSkuBHHFcR1Hcf00WnnfEO3jRGl mAsg== 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=eLd2G+IKqTuX45G6agMttC1zOYyEG8BG56exofTUANM=; b=TueWobiuPK1KI8eVNqOtPOqQeFnMyd4y0/V4WH3/FdDl7hORpRhSBJDx0UVxBzr3Hu 7GH/776Rmcf2M0ElF7hGwc+NEwmNwn2lKvxRYgGyq0cxt+FCMpCFmMau96w/rHM4CiVC r/NeEgB20lONe3Idn5o/m227TdThajNVZNF6FEi8jJD8Vmfv3XCGaQMsCIpw3dGkE7ad mdHhlkrHwYdu8SzVYku0Wj8mTP8YDkD+EQzBrjeQfMtMuY05c94yRuHwL06SB33k+6h7 qXR0hnL1ye4GpZwKU+oZQ4hEQeuD+EsJjFu8i3njucNfoyW8gFmwndmnu9LMyYz63YeU dCSg== X-Gm-Message-State: AHYfb5gsBMY9k2JMnmwW72q+/9EhZjIcuqcbSfgBAXZQII1IybbGP3vu SYhve3YxZK7iOQMVq2Q= X-Received: by 10.28.62.149 with SMTP id l143mr1374155wma.126.1503054232811; Fri, 18 Aug 2017 04:03:52 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id 195sm1042745wmv.25.2017.08.18.04.03.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2017 04:03:51 -0700 (PDT) From: luca.boccassi@gmail.com To: dev@dpdk.org Cc: Luca Boccassi Date: Fri, 18 Aug 2017 12:03:27 +0100 Message-Id: <20170818110328.7370-6-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170818110328.7370-1-luca.boccassi@gmail.com> References: <20170810182325.14058-1-luca.boccassi@gmail.com> <20170818110328.7370-1-luca.boccassi@gmail.com> Subject: [dpdk-dev] [PATCH v6 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: Fri, 18 Aug 2017 11:03:53 -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 c25fdd9f5..c5b8c1ead 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -270,8 +270,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