From patchwork Thu Sep 7 10:50:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 720596 Delivered-To: patch@linaro.org Received: by 2002:adf:eec5:0:b0:31d:da82:a3b4 with SMTP id a5csp163172wrp; Thu, 7 Sep 2023 03:51:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDwQmtB2qPuYIcICOkHztnWAc3o9m70nr9W8mHybRN2DuZShMmsAa7lz5yiPlT9fdVG9HM X-Received: by 2002:a05:620a:4709:b0:76f:16e9:be92 with SMTP id bs9-20020a05620a470900b0076f16e9be92mr22050586qkb.11.1694083873023; Thu, 07 Sep 2023 03:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694083873; cv=none; d=google.com; s=arc-20160816; b=QJGpAcQ+RJc/befvWhK9YoTa3C3zwT3QvPjwXRMbIZdZaR/MO8G93eqEITS4Xk/vPe 5pypLFWym2mCtIqA4eZ3LhCZN5PuySMKvw9iIfc9svhvtuUzbJg+s3NDjEPCA0HEe/4d 77seEbYoUDYG7c0fZFOCayvDhPfdSMfkR10DQD2g8eAsdqbEAe2tYznITy/2p2Xaujad MS8qs+k7umVQ/XAAbsWnnv5mRyIk1PtABtlcrNz04hRG6HBbFHiv4//SXzC9tjdR9G8u vf+mfojsH2lZ8d+IWDHRvOdcvfKTRxXhMhJVt+dmfBjMu39tlyIk4vY/9xPwUagb4JNF vsaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=hS+d+xDE7ab+3Ts35wM0NjR7BehB229Silm4f3RZJWI=; fh=BW8kVGHgEV8gn3zw8WoObUnBXsqPghOK4kNDCIpquMI=; b=b2JNygyZvA4F4CIKNE5mkTp2aXhOn4xo85gBNbh6hReDJx5xFJbPVZvoo48tIzmaqh 6wELYCoUtwSkI7QgmsxKbFWxUjh6lqmfiSvfWzG7VmJURYL+8AqJEmQV9KkVseTqhc3a sHJRStBpwB9uFG93rHoCW9IfsRqcPR5xYEecPQx56jQqECf5b4O2FEdrfR8Og24sWs0N ihOM4jYlDdHsi/I7JZMe2Fsp2aKPEiw5IJeU1JIXXZB7vRDg5txmPdTIJsiDBr694lwU KJmveLb7c5x0HjvQIGnPu/dKDAFs4cxTHNcfrbIpWARQaZqn5c/FqnF6mAzV7oBni0hE lP1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RuhRR2N4; 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=pass (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 ov4-20020a05620a628400b0076ef03a1ebbsi10891010qkn.75.2023.09.07.03.51.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Sep 2023 03:51:13 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=RuhRR2N4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeCav-0000CY-SO; Thu, 07 Sep 2023 06:50:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeCau-0000C4-73 for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:40 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeCar-0004qy-W5 for qemu-devel@nongnu.org; Thu, 07 Sep 2023 06:50:39 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-401da71b85eso8728725e9.1 for ; Thu, 07 Sep 2023 03:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694083836; x=1694688636; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hS+d+xDE7ab+3Ts35wM0NjR7BehB229Silm4f3RZJWI=; b=RuhRR2N4QqewP1vXRiBZNU8IbwFky/VbKvHTgm/Zrl4XiiofvfIC5Q3N1zPZkIQcs0 U28zoYIAK9CLL5yUU8SxCGCQduR1Bu0hdWwQt8xjjUQ2SWdSI5pafBOIZ7zOE3wMujyC wdYfM7dh1vbNrgDEMzJH89DERYPDXSabvDaTIHVXJelh8LeUNgdSgKQ//tnKvJ1Qd4pQ q7B6+s+ZS42Hz/+t8rh2SVGvJYZQKuQ7oWOH77/84Eg+CK/eMxV1bXr4olJRiYsyK6wj RgYfgQXJUc5exWb3+Xgq/9R4x+rJZVRZjnhiJNUDxi4ntHsDIBFafCixSpDjFKGp+KZe WQSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694083836; x=1694688636; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hS+d+xDE7ab+3Ts35wM0NjR7BehB229Silm4f3RZJWI=; b=Siv8T92KWqfUrvzDGK8pNPd/NrokurTuvpFykh3O915m93VWzUSyLGvVTvfX1v46D4 nO4G1E+SeTjDU/1Pwh0zmbRW+Qt5iadv2lyiyZWTOdvvhVLO7MdpWTGPBd5rYyq0FMcu vE/CAn9ehRGclsVD0nN16JoPyzXymhZbRfu+9Lts6ITAWu+5ro709oHvHjslVPi2z+TP W5M4FL1Mbt0vnAP13oPqou7DcvG++ByBs7JGy9BdRPJMvrNVkwkLMPBSw0nMoW9hzyrX GvE1UnxBq2qg5pglu4d61d/LsVhLNFEQkEgP5411ops0b0dYV+67uqwfB8pEa8Xu8hyL S8Nw== X-Gm-Message-State: AOJu0YwbPqw/XEVGXqkyEf2zOmWuC7whu8yw3uAE7zRhQuZmDOZmIV9q QnjKPd01ea57Kv3b9s5AVOD0bytfSj2Z++UHlnI= X-Received: by 2002:a05:600c:2611:b0:401:dc7c:2490 with SMTP id h17-20020a05600c261100b00401dc7c2490mr4140589wma.0.1694083835912; Thu, 07 Sep 2023 03:50:35 -0700 (PDT) Received: from m1x-phil.lan (176-131-222-226.abo.bbox.fr. [176.131.222.226]) by smtp.gmail.com with ESMTPSA id m12-20020adff38c000000b0031ad5fb5a0fsm23018749wro.58.2023.09.07.03.50.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Sep 2023 03:50:35 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alexandre Iooss , Paolo Bonzini , Mahmoud Mandour , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= Subject: [PATCH 5/5] contrib/plugins: Link with GLib Date: Thu, 7 Sep 2023 12:50:04 +0200 Message-ID: <20230907105004.88600-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230907105004.88600-1-philmd@linaro.org> References: <20230907105004.88600-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This fixes on Darwin: ld: symbol(s) not found for architecture arm64 "_g_string_append_printf", referenced from: _log_stats in cache.o _log_top_insns in cache.o _append_stats_line in cache.o ld: symbol(s) not found for architecture arm64 "_g_string_free", referenced from: _g_autoptr_cleanup_gstring_free in cache.o "_g_string_insert_len", referenced from: _log_stats in cache.o _append_stats_line in cache.o ld: symbol(s) not found for architecture arm64 "_g_string_new", referenced from: _log_stats in cache.o _log_top_insns in cache.o "_g_strsplit", referenced from: _qemu_plugin_install in cache.o ... Signed-off-by: Philippe Mathieu-Daudé --- Note LIBS was unused. --- contrib/plugins/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/plugins/Makefile b/contrib/plugins/Makefile index b2b9db9f51..e9173972eb 100644 --- a/contrib/plugins/Makefile +++ b/contrib/plugins/Makefile @@ -26,6 +26,7 @@ SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES))) # The main QEMU uses Glib extensively so it's perfectly fine to use it # in plugins (which many example do). +LDLIBS += $(shell $(PKG_CONFIG) --libs glib-2.0) CFLAGS := $(shell $(PKG_CONFIG) --cflags glib-2.0) CFLAGS += -fPIC -Wall CFLAGS += $(if $(CONFIG_DEBUG_TCG), -ggdb -O0)