From patchwork Tue Nov 16 16:25:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 519206 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp7372775imj; Tue, 16 Nov 2021 08:33:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQoY20JhgP7wvLUrUBGc9A52zCoXkvo2bQt7G7Na9VHHGl24Fh2HUnMBtWSCOyJS/C1nc0 X-Received: by 2002:a05:620a:2486:: with SMTP id i6mr7425400qkn.522.1637080415213; Tue, 16 Nov 2021 08:33:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637080415; cv=none; d=google.com; s=arc-20160816; b=BSWfM9K9TrFAQy1+BqyPw50THx/91dj09H6a9YV75ACihhi+o6McTn8fOj628j07t6 pOl1SO+tQFc84npwT56hU0G/h5JbkoWPymoyRGnidSwQSci+/iBjTTadAKdU9vkBPGZy eiB81QJxgSco8yEFiRKVF5pcU4qZ1n+viwogyEsfy0sVQ8SpDhWvdOyArqtUOWUEJAQh 9mu1EJor8I03bQ6O1JklMKHUipETJ13Ba4iVm88Atr7TlVkfEdXIXofTiM4Z0OJU10LP 1pn7+qQly1+FfkinC4GLO3BgOomQQ3IITWVt+Awivn0DwsDck0d+TB4dw1O0luaB2clF Md2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=1WDIBwbb+pbmjdFoltQ0K0xm+LnAIzLLTJI2QcLMIy4=; b=0YstZLijhhdZUjEev5uK82JLKhwRqy7+271iKl27NYyQisv3e/BDtx7/myY62DcB42 0/2/McZwOQWsxzU3k9zQd4+jyeINMVisyXWFiFcBcUwl7vjZ2syj8SqRbGCCRBMAFcNI 8EOnE/Xn7X05+XfJeU5UhkH0okRIsp7EOS8rqfFvyK0Yt5AMtLFh5RteiIUb8wDghUEY stj199saMXJqTFIBGhQGT2SbTJciD02DC1zK3KcEnJqHQ9hBD9x7ATwvQyaOge0Cdl1n tV/1UV6Zjy49p5wASvfPk3zDEYoR38Cw3ry/R8VD/+4SPsi59KYkyL9aOd5DTPSmT5YM Wxdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wmb3iL4B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s8si27671608qko.313.2021.11.16.08.33.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Nov 2021 08:33:35 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wmb3iL4B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn1Oo-000640-Ls for patch@linaro.org; Tue, 16 Nov 2021 11:33:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn1Gv-0004dE-5n for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:25 -0500 Received: from [2a00:1450:4864:20::32e] (port=39876 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn1Gt-0004CZ-6N for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:24 -0500 Received: by mail-wm1-x32e.google.com with SMTP id n33-20020a05600c502100b0032fb900951eso2460760wmr.4 for ; Tue, 16 Nov 2021 08:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1WDIBwbb+pbmjdFoltQ0K0xm+LnAIzLLTJI2QcLMIy4=; b=Wmb3iL4BNxUtuXr6Uza7awe0m5etmLgwDmOycKsvenoR1U645tE6GBy6hjl/vuXPV4 +TOLHwD/7XkVedTHjjPL+WjcuZdsvChkaI9Lqpcp6JapW+TpfQe9lEY5QSLawr0GwHeF CXiZZCqTaXyH6Wl3wFQtyvz+p20jRMR9or44LAbxMoI8ER+7fBf1tVHJaZAF3kfXRlCc 5zM3rIpyzc4xlpgjDpH63c5wLqZjq7pOGQCuX86v1tY72dqCK1XHBU4gbubcK9oENQMX zrAUiUeHxXl32Iqs60PyQjEhNMSS35ufYiydEMtemJzOu7SsTni3Tmc15sv8xX7KMg/f zzYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1WDIBwbb+pbmjdFoltQ0K0xm+LnAIzLLTJI2QcLMIy4=; b=WhOZ91ShXJDYaS+IFQ0w8rDfVuWoco/6F93/nLi6S78CWagvX00IBEfe2WUfd6HIka KPjISop9IDEw5P/jC48Iqpyzl9EKNYrPLsV00usO8LWyEpCtXx6xLrV0p6+4eNe0/1g6 Q104x8QM6sm5Frv6uJoBIp0uv1LY+G0BUcL5tK1rmdv43d0J/1iLkpRO3jQOtUYw3kwW 50jjYpS4B07r88tl+ecp3MTQ0W3hnL8D8vD05/ipk0k/PH0dSKM9WbFxDcrsHHkMe7Fx 9zvnr37RHzrGRQD1uNlIcQJ+3/ip381ktFZNaTyUDLzqv28+9cBDZWPVEjH5GE7Umpf3 jjHw== X-Gm-Message-State: AOAM533BsRFiZNXw7TJJFaZ64XipB1rJkIjsDOY04242R1yhZxm5Wcbh gKSwhPv3su1mzOD7xPNVrxeXOu/RgeYdtQ== X-Received: by 2002:a1c:4d0b:: with SMTP id o11mr9093447wmh.68.1637079921713; Tue, 16 Nov 2021 08:25:21 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id e12sm21561230wrq.20.2021.11.16.08.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 08:25:19 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B2B791FF9B; Tue, 16 Nov 2021 16:25:15 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Subject: [PULL 4/7] meson: remove useless libdl test Date: Tue, 16 Nov 2021 16:25:12 +0000 Message-Id: <20211116162515.4100231-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211116162515.4100231-1-alex.bennee@linaro.org> References: <20211116162515.4100231-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Thomas Huth , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , qemu-devel@nongnu.org, Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Paolo Bonzini dlopen is never used after it is sought via cc.find_library, because plugins use gmodule instead; remove the test. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20211110092454.30916-1-pbonzini@redhat.com> Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20211115142915.3797652-5-alex.bennee@linaro.org> diff --git a/meson.build b/meson.build index 2ece4fe088..baeaee4522 100644 --- a/meson.build +++ b/meson.build @@ -566,13 +566,7 @@ endif spice_headers = spice.partial_dependency(compile_args: true, includes: true) rt = cc.find_library('rt', required: false) -libdl = not_found -if 'CONFIG_PLUGIN' in config_host - libdl = cc.find_library('dl', required: false) - if not cc.has_function('dlopen', dependencies: libdl) - error('dlopen not found') - endif -endif + libiscsi = not_found if not get_option('libiscsi').auto() or have_block libiscsi = dependency('libiscsi', version: '>=1.9.0', diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build index 137a1a44cc..7a0a79d731 100644 --- a/accel/tcg/meson.build +++ b/accel/tcg/meson.build @@ -10,7 +10,7 @@ tcg_ss.add(files( )) tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c')) tcg_ss.add(when: 'CONFIG_SOFTMMU', if_false: files('user-exec-stub.c')) -tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c'), libdl]) +tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c')]) specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss) specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: files(