Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3973355rwo; Mon, 24 Jul 2023 21:21:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMrzu063oZQxrpjrFgCsqhoclQoqXApMzTNjghqBS2xwX02EBUdRbAT0xmphFneuileuEo X-Received: by 2002:a17:906:5a4c:b0:992:345e:831b with SMTP id my12-20020a1709065a4c00b00992345e831bmr12464581ejc.50.1690258915440; Mon, 24 Jul 2023 21:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690258915; cv=none; d=google.com; s=arc-20160816; b=ktYkL2K4iAycQzlqurbTMt6k98rPhBlPqA7G4a9mlyPB1lAUViYMXk/diApRwS2+3c 7oW2DUa/4X/gUYVmojNzCSSZfbBInncvwToC+AG+pMO0d5+m4c6escLCz3Rek02SXicC tBF3eW0OmZMWcq/bAW6EQ9JsPKisJsQz3rTGS0rqTYcdpGDDmbU2ce4rS0VV7H/aJOkX RmVXsZPlAJNANefulBF0uiXd5hn6nrWCFvorDIfLgot7QiGAihF2PwDUXqXmJYZUwVFO 5Q/elCyTXhPSwW5o3iARtk4Coxja2u0KW56GqjFA2/ph13uGLkzMbYzzVKArgKIE3TAO Uj6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MKrWizUyAS1vBnZ8CLGVaJEkaZY/ep7nAYLeXdQOKWU=; fh=xX5G3oOpkKPslr5HtLaTS7kcGk9uOzx3fVuRThoV7WM=; b=hUJ5l0u5+DdDsu70W7WOME0fjX/fKP+m2tY3Z1dslaaE1Zjw9dH3echAXUDQgK/Pw7 kXylMgfamFv3X/XVM8e+68RYNET5JTdQ8Z4/NlNmBMla3NgtRlqMaVSz+CNcin5C1g/J m0LcBJO3pxKTVfyLY3PnOyJfbcj+MpvEFWCeLjtXShnDbuVlSy2yBeGvH6M2fgqmAJK5 FVxX8eD0dd0zRewQhR/cCviQ77R97HpeSVNvaeVAD6nwA5C3d12TXBYUtuSEiuaM5GNZ o9s5zPPFWQM7GAgEI5IX8UurqnAV7HSmZXyP6r5FwGkOVaq78zVM9BRk2rg9hZiyPHa3 lPrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VhrfyCbh; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a1709064ed800b00992dc9d3b33si7112796ejv.863.2023.07.24.21.21.28; Mon, 24 Jul 2023 21:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VhrfyCbh; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjGYDsY (ORCPT + 99 others); Mon, 24 Jul 2023 23:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjGYDsX (ORCPT ); Mon, 24 Jul 2023 23:48:23 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C67171E for ; Mon, 24 Jul 2023 20:48:20 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a3b7fafd61so3528746b6e.2 for ; Mon, 24 Jul 2023 20:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690256899; x=1690861699; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MKrWizUyAS1vBnZ8CLGVaJEkaZY/ep7nAYLeXdQOKWU=; b=VhrfyCbhabWftdEIjCueUMd2o9A1rLTCbMk0hF4CHI9jzquZqxBAdaz2GSPgRxLEbX T6Ge0S9rNzBSCrrqakza3mcoUzC1d8PBtZrgVLugnk+XyrakLCCCbtni4xT8hYptLu4I rSNgPmVKmHWl84Fiym34AKZIxESV8R1NvNSZ+WexkaHSTU5qyW95GOW9a6OYwFrgNlcM kFSqTmixmo1mHj19pyjyTjNAPlb23UuTXMl2RXtxTWRkxim99XskIpojidSlSD6FADMW ulVFUOjcIcobPTJS4W+fPLAvcScIC+fkl/IpDNHtlQNcwOgAsi/vw9K5kjPDRs2n6lSf xNig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690256899; x=1690861699; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MKrWizUyAS1vBnZ8CLGVaJEkaZY/ep7nAYLeXdQOKWU=; b=XoXdC0Tw6tp7dHBRzEzYYXTilQrTtlmEVfehNbo0SXY2yPCdqyfqIJMpAKMpeTPcK8 NRFO2azVEWwih4GIp1an7kkze+wwv5yfJBSBgwHGOCUd5v0nUOphhXW/HtZi2Re+sE95 CIXABveOQTv/a8Us0gqZa6me3PEyqorETmzq47ve+Zb1indsE6quq2hS1jCRA62+C+sp /0gt7/dSDh5iQeCBuv8sKTOZcAtF8vl3Vhj4Ij+2iUhh9m08rRsJ/1GWzRCVxFI8z8/4 lphmAB6w8HelV29gUl8gatfd/Og3UYXGauueUZ/T9pOEYA0OnGNRG7lj6qTcQBNCEa3q EyXQ== X-Gm-Message-State: ABy/qLYEGelFU2zcjneozixvlOwvC17y2ENU7UhbF69AE3hmGtL47fsD yGqpsQNG/jFq/X/s9KaMCd8GMMXCPWNOMg== X-Received: by 2002:a54:4703:0:b0:3a1:eb15:5ec4 with SMTP id k3-20020a544703000000b003a1eb155ec4mr9451286oik.42.1690256899077; Mon, 24 Jul 2023 20:48:19 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9100:6180::569b]) by smtp.gmail.com with ESMTPSA id x9-20020a63aa49000000b0056334a7b9b2sm9450076pgo.33.2023.07.24.20.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 20:48:18 -0700 (PDT) From: Khem Raj To: linux-nfs@vger.kernel.org Cc: Khem Raj Subject: [PATCH] locktest: Makefile.am: Do not use build flags Date: Mon, 24 Jul 2023 20:48:16 -0700 Message-ID: <20230725034816.983892-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Using CFLAGS_FOR_BUILD etc. here means it is using wrong flags when thse flags are speficied different than target flags which is common when cross-building. It can pass wrong paths to linker and it would find incompatible libraries during link since they are from host system and target maybe not same as build host. Fixes subtle errors like | aarch64-yoe-linux-ld.lld: error: /mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nfs-utils/2.6.3-r0/recipe-sysroot-native/usr/lib/libsqlite3.so is incompatible with elf64-littleaarch64 Upstream-Status: Pending Signed-off-by: Khem Raj --- tools/locktest/Makefile.am | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/locktest/Makefile.am b/tools/locktest/Makefile.am index e8914655..2fd36971 100644 --- a/tools/locktest/Makefile.am +++ b/tools/locktest/Makefile.am @@ -2,8 +2,5 @@ noinst_PROGRAMS = testlk testlk_SOURCES = testlk.c -testlk_CFLAGS=$(CFLAGS_FOR_BUILD) -testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD) MAINTAINERCLEANFILES = Makefile.in -- 2.41.0