From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83904A0518; Sun, 21 Jun 2020 00:36:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B34C1BFC8; Sun, 21 Jun 2020 00:35:56 +0200 (CEST) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 2B4BB1BFBD for ; Sun, 21 Jun 2020 00:35:53 +0200 (CEST) Received: by mail-lf1-f65.google.com with SMTP id d7so7546315lfi.12 for ; Sat, 20 Jun 2020 15:35: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 :mime-version:content-transfer-encoding; bh=dwK0w4XEJbWGjpM+1vfoFREAFfyjXah6z1x3aKCdvhU=; b=uisVRUJfPtK9IuvTtgDKUdobYpTG3sgylE7by8QmcP9ndZOp04hLuis4VE+O2cSlVE QG7RDDWaoCUR/uzCbfxOyih0a78mzH4+C++6WX+RZZlO9TJDxewunklCMdA5ORWj8G00 39BOstkfBZr7ncDfV2Yu7qjEB4NPHoVZV7k+OtYeyIB661Bn9Czu/7zHeB+QHGgtkoJ7 51lZbWhFT4GEZSZW7J+wDSn0XdOZD4GXoz1NbYOMCjs/T6flTRlCWVmImxUH0ffdp+5x t4Y37ckWO6fvA9nnMvLwn8tORKOiThhTVyOjtetus7V3pWZnsfhjG7ksNc1XhEPnNAKg FT2g== 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:mime-version:content-transfer-encoding; bh=dwK0w4XEJbWGjpM+1vfoFREAFfyjXah6z1x3aKCdvhU=; b=QImShTA2GCC36tfoYWgXucE+kZV0+2TYw0BKuIExcKn/q2+WkaCN5qeafvERctnjka O27jiBV/E2CuZq1EI9IEK6a+nLVN5xBva1ZGYgDbfhQNaq2UTxznwzjh37Vp8ClK2Gvb 02qebxta1ugY1W2C/zD+HaehNf4egcyvM6bG19r/CyROeqJajKe2uhzVVYZVAW3UZckP kNTKcR1jFf1kWTryTH5whGTprXE4nvjRXxbMfm4nL3lliLLkjxOA470m/5OGGUOtWJ8d 3Bb5U/EUv85fz8fxyu05pVByaTmXBDBnnETqYrcPJGM7QdEReQhGqNlZQhyTSZhPRa04 2+VA== X-Gm-Message-State: AOAM532uUZzFPBH/eKdoQ48lkm7kVj3aE4L0dbZY0wlB3AEXGVyKEjhi 44yT1ODoaqXlK7ofMC8tEZe9vdTCrIFRXg== X-Google-Smtp-Source: ABdhPJzyizNhdIH10np6n9l3w7lqKzXgRN1cnDMeFXXO0oFhYx6EUVpufN1k3ABxrMCEmNGGlXO5dw== X-Received: by 2002:a05:6512:3089:: with SMTP id z9mr5540788lfd.83.1592692552443; Sat, 20 Jun 2020 15:35:52 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id q14sm1877015ljj.110.2020.06.20.15.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2020 15:35:51 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Thomas Monjalon , Tal Shnaiderman , Dmitry Kozlyuk , Bruce Richardson Date: Sun, 21 Jun 2020 01:35:42 +0300 Message-Id: <20200620223544.24070-2-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200620223544.24070-1-dmitry.kozliuk@gmail.com> References: <20200620223544.24070-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/3] config: never link with pthread on Windows 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Even if pthread is provided by the toolchain, it is not needed for DPDK on Windows, because internal shim is used. As a side-effect, this enables cross-build with MinGW configured with non-POSIX thread library, e.g. mcfgthread, which is the default on some distributions. Signed-off-by: Dmitry Kozlyuk --- config/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/meson.build b/config/meson.build index d3f05f878..bb64c3bd4 100644 --- a/config/meson.build +++ b/config/meson.build @@ -117,7 +117,7 @@ if not is_windows endif # use pthreads if available for the platform -if not is_ms_linker +if not is_windows add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags += '-pthread' endif -- 2.25.4