From nobody Sat May 4 02:11:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576074524; cv=none; d=zohomail.com; s=zohoarc; b=HwAOD6e3QZla9H9N73MAl5GRDIKJAZejqBp1n73RjBsdr4eeKwr+DpV9Cv+4qC+idOBfEh71c0e91LNJxsf61PhEMwJajETjbCCfrfT0aYGCSJ8Dgv6JQ9OfQp8PVelpoQPU/SCg0L5LmB/0gR2KBI/MfT3Tfga39uQnplPKVKs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576074524; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=KTbcScOLjXllpK9umoeqVc/PDjmIqMW5fTameWTBrIo=; b=ActKlH88zACus4ZD19Y5hYTGWB8gjeo9AQzzKpiYj9uldxxz7dOfwGItB+3qb8nZm/COmqcZFTiGyBbGp/CwEWYpoBvYUyLW9IHWKXilPkrTfmZ3+gcyDRBR29lz5xyuWdnmlkbdQrlqr5zEO+XuLZA/ToGjFP7L2Tgylt4oh94= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576074524672994.9277647566963; Wed, 11 Dec 2019 06:28:44 -0800 (PST) Received: from localhost ([::1]:43208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2yp-0002Hc-F6 for importer@patchew.org; Wed, 11 Dec 2019 09:28:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33371) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1if2ts-0005PV-Gx for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:23:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1if2tq-000391-NG for qemu-devel@nongnu.org; Wed, 11 Dec 2019 09:23:35 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:33214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1if2tq-00037k-HE; Wed, 11 Dec 2019 09:23:34 -0500 Received: by mail-wr1-x444.google.com with SMTP id b6so24267647wrq.0; Wed, 11 Dec 2019 06:23:34 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id g23sm2503783wmk.14.2019.12.11.06.23.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2019 06:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KTbcScOLjXllpK9umoeqVc/PDjmIqMW5fTameWTBrIo=; b=oN8qPj0jT+uo3AMAXS8VqupwT9RelTzEQBqYUNqK0iIKnznELXzRwmquB1uunWzg5g IsMBvDiPFXpLxyaqhRE/aMbHjLrIvb+14saNSGOeuuga3uNtM0tfYjPm452SA0+JASfS mP5ExkHo2pPLqmS2V156WMbX9Zf+VjTY/j+trOBrx17JkthX5sz8b5LpzoOpDSuT7U4k UP5QtJ1Z6XRLvJrAFJdO0HzMQ+dKAMB6Z9/qobqOsgK5XkBGx8h1niM31c99ZT8RrtNS nrtUQ9a3FN8JkUiGFI/6j3bUqk0fqcAly8Nk6i41oNO0/P0BSrvCdcS/N5XmKjl/OnIi D+vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=KTbcScOLjXllpK9umoeqVc/PDjmIqMW5fTameWTBrIo=; b=Ucu+ICvnl9pZnhOQ6H808sCBnoLjS+vGfZ8uvUW72KqSbfdOEFi4Sk+r6bja4l3SvI apy+e7W0W5X5g73R7t1DTgDn5pDA2I3N5HwXm7qIYWyjzfaz3U9khop2CqxXmVeqnnlr 0oIFf+NdemB3wbnPGGGrFv6FJbTcbEBQl7fWUn56nkg1Y0SEXwAfi/etRwyPZNQ3ceZA vsp9M9onLY7Z69wRKQ5OGsikT/Y4CP3MEKdTSru4t2X45xh3q2xp4qVXJHQ+chOvElA9 XitHlCc3vKnoxjY5RUR/ZfCuflc9h09IXFeFTrSFGyK1P2/WDm3W2/QMvPa6Wu4msl1B 2Exg== X-Gm-Message-State: APjAAAXSNtnAy6qbddzJdsAeZU9O93khNy2ko+HliNGjp+SDUdDh/50z q7GPXTFeCqPZ7Ng8Roq89T46mY5c X-Google-Smtp-Source: APXvYqyJReA0qZLK4zO4VcBN0cU/v+F2bAwpe1awnganCfX8fr2Zi2UeuPOcHS90qWNi7if78+sPxg== X-Received: by 2002:adf:fd87:: with SMTP id d7mr70174wrr.226.1576074213202; Wed, 11 Dec 2019 06:23:33 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] build-sys: do not include Windows SLIRP dependencies in $LIBS Date: Wed, 11 Dec 2019 15:23:23 +0100 Message-Id: <1576074210-52834-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) When including the internal SLIRP library, we should add all the libraries = that it needs for the build. Right now they are all included by QEMU, but -liph= lpapi is not needed without slirp. Move it from LIBS to slirp_libs. Based on a patch by Marc-Andr=C3=A9 Lureau. Signed-off-by: Paolo Bonzini Acked-by: Samuel Thibault --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6099be1..d16dad2 100755 --- a/configure +++ b/configure @@ -926,7 +926,7 @@ if test "$mingw32" =3D "yes" ; then DSOSUF=3D".dll" # MinGW needs -mthreads for TLS and macro _MT. QEMU_CFLAGS=3D"-mthreads $QEMU_CFLAGS" - LIBS=3D"-lwinmm -lws2_32 -liphlpapi $LIBS" + LIBS=3D"-lwinmm -lws2_32 $LIBS" write_c_skeleton; if compile_prog "" "-liberty" ; then LIBS=3D"-liberty $LIBS" @@ -6069,6 +6069,9 @@ case "$slirp" in mkdir -p slirp slirp_cflags=3D"-I\$(SRC_PATH)/slirp/src -I\$(BUILD_DIR)/slirp/src" slirp_libs=3D"-L\$(BUILD_DIR)/slirp -lslirp" + if test "$mingw32" =3D "yes" ; then + slirp_libs=3D"$slirp_libs -lws2_32 -liphlpapi" + fi ;; =20 system) --=20 1.8.3.1