From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id E31326841 for ; Thu, 10 Aug 2017 20:24:24 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id c24so1096172wra.2 for ; Thu, 10 Aug 2017 11:24:24 -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=FbJavLSAfQmakN69TPmEfptt8YLpc7Ku+R8zS09RRrTlXzc0fcTdz88ub1X2kORzFn 8Qk+7zGv17u+2pXEbCloMnxD4+I7dEl955tH536pZZZ/KxbbXxndoz4UHK2lVfcBtnMT Qyk/2I0wmgrL7bclYkH161xTKjdoYkXojXQ5gE27imQXdwyPq4RbORsbPzpAS86uvFNG zQEtN+VcG1TYr4VBUkAHJ0+tqUmdlmYNsnz0rAOJvcO53/AN1GBTkXjHhEdXH7rBZg3p t/OxV5zp7QsH6GHg1NmNPkAawdY7Re5o5JaEcY/hqLEqLOUuELWxQ6lbjygTa2HGhSAV 2cCg== 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=V9jpajKVvOlwaFR7JIPYWYdmyUDdhU8sJmrOI71NK5/K+vJZP10LoJDA9i6RriM8R0 DfhgKW/BvMl8OZN4hRGWEjGGEB18RWcV2shcIDH+9v7VPY8NIn+u2H7f2naoNN+z9zEp DMNpHEC9Zd6l1eIejMO4cIPHYhCLUzOWUsqw9hWE+J1ri8OKMwrVdN1coa4ndpmTfyy3 eFIeuiB7pqytLsZ2cF6a7eiQsUhL7E5OryZCLVl+n28Svh2kaG9xvqRJ5/OOApWsnxJ5 bhnRNIvZlGRzyAk2wCPm9X2mP3pkobsK/gjM2ZUOi/Hp4r6kbQOhF8c9KyzzPXmhAaAX 5xng== X-Gm-Message-State: AHYfb5gfTVHD4q07MRpsIIqtsv9HR2Mb+UZhu2vzYNEa0qm7PTyz6RbP BeCuAYRxLVIw4ITSfUQ= X-Received: by 10.223.136.108 with SMTP id e41mr9165525wre.218.1502389464478; Thu, 10 Aug 2017 11:24:24 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id o51sm8492183wrc.48.2017.08.10.11.24.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Aug 2017 11:24:23 -0700 (PDT) From: luca.boccassi@gmail.com To: dev@dpdk.org Cc: Luca Boccassi Date: Thu, 10 Aug 2017 19:23:24 +0100 Message-Id: <20170810182325.14058-6-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170810182325.14058-1-luca.boccassi@gmail.com> References: <20170628135702.18150-1-lboccass@brocade.com> <20170810182325.14058-1-luca.boccassi@gmail.com> Subject: [dpdk-dev] [PATCH v5 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, 10 Aug 2017 18:24:25 -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