From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497285; cv=none; d=zoho.com; s=zohoarc; b=AkLaqTpaMc6F0WRSr1PiXJpFXsqh/63UpAW4PMHycUKeS/it70j8tDlizIIhWFhRh3AVS47heVKAksyA0j8Ng1FZMEp5wlUJfAyJ7K9ilLG9nftYcG0BNpV8dIktRvQrZVy7WUIC3FX8fCtCwxQS8SDnpOxfnUaqtbtovNdafBs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497285; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=XtT3VR5NIt8QGwkT7tOJ5N1q7iDKc0L1cHSkHvStm2M=; b=jlivNBokOx5JKKhEowDhAxYUT4omIoJFcK7V+AtfUex6sug8oEKe9c2Jd2aAYC5wB7ZJdmGUEmcn76YHeI3Ywoo/24FyK8fIL8/T0YgyI8R/DeU+wfRWqldmZVttVuRW6sCv6nb2q/rPRxYX647FMuMsscgzsjQda40TXjp+sC8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1560497285590806.731299718288; Fri, 14 Jun 2019 00:28:05 -0700 (PDT) Received: from localhost ([::1]:48992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgd2-0000jw-FW for importer@patchew.org; Fri, 14 Jun 2019 03:28:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39253) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbga9-00079f-2o for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbga7-0004kY-PG for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbga5-0004hZ-Du; Fri, 14 Jun 2019 03:25:01 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 60513859FE; Fri, 14 Jun 2019 07:24:55 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 81227605CD; Fri, 14 Jun 2019 07:24:45 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:27 +0200 Message-Id: <20190614072432.820-2-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 14 Jun 2019 07:25:00 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/6] configure: Only generate GLUSTERFS variables if glusterfs is usable 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" It is pointless and confusing to have GLUSTERFS variables in config-host.mak when glusterfs is not usable. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Niels de Vos --- configure | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/configure b/configure index b091b82cb3..13fd4a1166 100755 --- a/configure +++ b/configure @@ -7118,30 +7118,30 @@ if test "$glusterfs" =3D "yes" ; then echo "CONFIG_GLUSTERFS=3Dm" >> $config_host_mak echo "GLUSTERFS_CFLAGS=3D$glusterfs_cflags" >> $config_host_mak echo "GLUSTERFS_LIBS=3D$glusterfs_libs" >> $config_host_mak -fi =20 -if test "$glusterfs_xlator_opt" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_XLATOR_OPT=3Dy" >> $config_host_mak -fi + if test "$glusterfs_xlator_opt" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_XLATOR_OPT=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_discard" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_DISCARD=3Dy" >> $config_host_mak -fi + if test "$glusterfs_discard" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_DISCARD=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_fallocate" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_FALLOCATE=3Dy" >> $config_host_mak -fi + if test "$glusterfs_fallocate" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_FALLOCATE=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_zerofill" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_ZEROFILL=3Dy" >> $config_host_mak -fi + if test "$glusterfs_zerofill" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_ZEROFILL=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_ftruncate_has_stat" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT=3Dy" >> $config_host_mak -fi + if test "$glusterfs_ftruncate_has_stat" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT=3Dy" >> $config_host_mak + fi =20 -if test "$glusterfs_iocb_has_stat" =3D "yes" ; then - echo "CONFIG_GLUSTERFS_IOCB_HAS_STAT=3Dy" >> $config_host_mak + if test "$glusterfs_iocb_has_stat" =3D "yes" ; then + echo "CONFIG_GLUSTERFS_IOCB_HAS_STAT=3Dy" >> $config_host_mak + fi fi =20 if test "$libssh2" =3D "yes" ; then --=20 2.20.1 From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497322; cv=none; d=zoho.com; s=zohoarc; b=d867yWnMRCpGHU4m+mqLSXJ4wlSrSOnkv4oHgg0maiHTdNBbI6Vva9KTA7iIAvoraik/L9G6JyQW4oFkH4rULCgWZ203IE8apFKb/B8FSjSFt2iu4UQnInLcG/9u9xAOAD0VbNt6mEnghuZG4MVETpkPj+jtjIXiPOyr+HBtXag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497322; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=O5BEaQy9Eo5kXj5HtT4lL9KJ9YuNrfn68OwdJf4aOvg=; b=H99bvGcZhvswYI9Wke1/JCU1JOiko8DUyN5WF1LoPrX9sTiIOrMy8Jm0IcKGUMFED2hRqF3biZg9tb8O8TRP23fzrJoQaU03xmC205ZTVyioWTBcZJx+8I0g6ckI+RJIyCuNPT+XzbAjxjNNuZ1MHjd7Kd58W0t3id/PnHr0p+Q= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1560497322618624.4505775173311; Fri, 14 Jun 2019 00:28:42 -0700 (PDT) Received: from localhost ([::1]:48998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgdd-00024o-Md for importer@patchew.org; Fri, 14 Jun 2019 03:28:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39323) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgaJ-0007PG-D1 for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgaI-0004zN-AL for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49434) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbgaD-0004pp-5p; Fri, 14 Jun 2019 03:25:09 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5332B81DE9; Fri, 14 Jun 2019 07:25:08 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2B9477C557; Fri, 14 Jun 2019 07:24:55 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:28 +0200 Message-Id: <20190614072432.820-3-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 14 Jun 2019 07:25:08 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/6] configure: Link test before auto-enabling glusterfs libraries 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the libraries link correctly before considering them as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lgfapi /usr/bin/ld: cannot find -lglusterfs /usr/bin/ld: cannot find -lgfrpc /usr/bin/ld: cannot find -lgfxdr collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep gf config-host.mak GLUSTERFS_LIBS=3D-lacl -lgfapi -lglusterfs -lgfrpc -lgfxdr -luuid $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 13fd4a1166..3428adb75b 100755 --- a/configure +++ b/configure @@ -4179,9 +4179,23 @@ fi # glusterfs probe if test "$glusterfs" !=3D "no" ; then if $pkg_config --atleast-version=3D3 glusterfs-api; then - glusterfs=3D"yes" glusterfs_cflags=3D$($pkg_config --cflags glusterfs-api) - glusterfs_libs=3D$($pkg_config --libs glusterfs-api) + if test "$static" =3D "yes"; then + glusterfs_libs=3D$($pkg_config --libs --static glusterfs-api) + else + glusterfs_libs=3D$($pkg_config --libs glusterfs-api) + fi + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$glusterfs_cflags" "$glusterfs_libs" ; then + if test "$glusterfs" =3D "yes" ; then + error_exit "glusterfs check failed." + fi + glusterfs=3D"no" + else + glusterfs=3D"yes" + fi if $pkg_config --atleast-version=3D4 glusterfs-api; then glusterfs_xlator_opt=3D"yes" fi --=20 2.20.1 From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497461; cv=none; d=zoho.com; s=zohoarc; b=UeCN3Jgc7FCet3MP/G+Ieq98MSo6PhmZQP+Ohe23aP8k9XvwSgUWsJRvsE1lNoTBtNNZnCn0iTYs4hZjBed4AFGdGSn6f4/DxAlnZCC9JyKNSpz+aMSttrU/CcULj+zByACx1J+G2m3NXYHwJeedY1WyEdtF7TyZMQ1QrP63/VQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497461; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=+aw7RQoRVsnHYIb1mNdfDfMMpVoT2vyydqAbmaiCcxo=; b=jKNjfJRvwFOB4z6sMM3pPOgld0JlS0lsGq52P1CippkiT5X+A1USjsJB9pOf/nQbKnd3e8AoefzHvUwptfdaLws16VfOld8FFnYRGRFvzQzs1NDimTrXFj8CsoSpwXD0RrPRylFhkDw8JxbJw+ogNjwrlOZ9mlCvPNxZ1WA5cWM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1560497461072650.1218750944687; Fri, 14 Jun 2019 00:31:01 -0700 (PDT) Received: from localhost ([::1]:49024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgfj-0004CO-Ss for importer@patchew.org; Fri, 14 Jun 2019 03:30:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39401) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgaS-0007Vt-LB for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgaQ-00057Y-MQ for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60932) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbgaN-00053Q-Fe; Fri, 14 Jun 2019 03:25:19 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B52763082126; Fri, 14 Jun 2019 07:25:18 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF6A160571; Fri, 14 Jun 2019 07:25:08 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:29 +0200 Message-Id: <20190614072432.820-4-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 14 Jun 2019 07:25:18 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 3/6] configure: Link test before auto-enabling the libusb library 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -ludev collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep udev config-host.mak LIBUSB_LIBS=3D-lusb-1.0 -ludev -pthread $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 3428adb75b..e2511df1e3 100755 --- a/configure +++ b/configure @@ -4898,9 +4898,23 @@ fi # check for libusb if test "$libusb" !=3D "no" ; then if $pkg_config --atleast-version=3D1.0.13 libusb-1.0; then - libusb=3D"yes" libusb_cflags=3D$($pkg_config --cflags libusb-1.0) - libusb_libs=3D$($pkg_config --libs libusb-1.0) + if test "$static" =3D "yes"; then + libusb_libs=3D$($pkg_config --libs --static libusb-1.0) + else + libusb_libs=3D$($pkg_config --libs libusb-1.0) + fi + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$libusb_cflags" "$libusb_libs" ; then + if test "$libusb" =3D "yes" ; then + error_exit "libusb check failed." + fi + libusb=3D"no" + else + libusb=3D"yes" + fi else if test "$libusb" =3D "yes"; then feature_not_found "libusb" "Install libusb devel >=3D 1.0.13" --=20 2.20.1 From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497314; cv=none; d=zoho.com; s=zohoarc; b=m1ip69gFDD4bO39V0QhhdGoUXLHx8GTVOf9NF1STdry/ohFoocyEMw0p+cVp+0Box4JJX/E+YqsEVycRcZV7kQJd/Ji116LBkafMwp4dSCc5EUiMWyULquXeFAACjpKS461LTKU7WyBtKVUESm6cnKBMDolAt27z80gzYW4BiK0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497314; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=/DOVYVBBMfw+Izd1ONMb/lL1EZwvGNXeqDbwfQQwveg=; b=NQr+co0U7yvTMF/b/tCRHtpvaq7Bk7Ho5hbgmWPw08Z4x/S00n8pTNipN3Ig/6BA2xPlwNng8WJTuMbO1hVhUuJq+XhtsoRNp31Pd6qPeUlWhMPXARGDk4pOtNFC9Vtas7RpNUXd0nyoclXLQjATdXmxvt5Z4O/L+dDKjxrq98M= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1560497314196775.5477136613703; Fri, 14 Jun 2019 00:28:34 -0700 (PDT) Received: from localhost ([::1]:48996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgdV-0001im-8I for importer@patchew.org; Fri, 14 Jun 2019 03:28:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39455) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgaY-0007ck-OT for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgaX-0005De-MU for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33048) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbgaU-0005AE-JH; Fri, 14 Jun 2019 03:25:26 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C61983082134; Fri, 14 Jun 2019 07:25:25 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5EAA660571; Fri, 14 Jun 2019 07:25:19 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:30 +0200 Message-Id: <20190614072432.820-5-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 14 Jun 2019 07:25:25 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 4/6] configure: Link test before auto-enabling the libusbredir library 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lusbredirparser collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep redir config-host.mak USB_REDIR_LIBS=3D-lusbredirparser $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e2511df1e3..4eed33e1b1 100755 --- a/configure +++ b/configure @@ -4926,9 +4926,23 @@ fi # check for usbredirparser for usb network redirection support if test "$usb_redir" !=3D "no" ; then if $pkg_config --atleast-version=3D0.6 libusbredirparser-0.5; then - usb_redir=3D"yes" usb_redir_cflags=3D$($pkg_config --cflags libusbredirparser-0.5) - usb_redir_libs=3D$($pkg_config --libs libusbredirparser-0.5) + if test "$static" =3D "yes"; then + usb_redir_libs=3D$($pkg_config --libs --static libusbredirpars= er-0.5) + else + usb_redir_libs=3D$($pkg_config --libs libusbredirparser-0.5) + fi + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$usb_redir_cflags" "$usb_redir_libs" ; then + if test "$usb_redir" =3D "yes" ; then + error_exit "usbredir check failed." + fi + usb_redir=3D"no" + else + usb_redir=3D"yes" + fi else if test "$usb_redir" =3D "yes"; then feature_not_found "usb-redir" "Install usbredir devel" --=20 2.20.1 From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497480; cv=none; d=zoho.com; s=zohoarc; b=JQIEL8q8EBqQliNXY1F3J8L+FG5CRLphHiA7lZnFUuhIOgn/K8idIGgZnYygu3V4P0iThPvj3XZEO0DsAMyZvYyULg+hpgXFsgRfPr0u+gXiR/+ciN+Iy8LRrUZRT7tJJkxaWPlFi4XZ0v2yVhNbuaLnGmNdWDbKB/dM5TD3q+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497480; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=6nCMJ2Kd3ujGpr8upqMbEBhA4quFjtTw0bfVSyEZkXU=; b=kNN8TSp/aqOIii9HKTyfuXYxwx/84fj9LchcKh4ToU/ZBXIlnesUYxupgbUBSWoypM2EzI5IZGTM4Fee7v9fp4jhlnxqYiuZs806DWJMPdn3UeJmIMQHqsTdR5PDmtgcbMuhuc4DTLbE8clYEFy25qrGFFOqCvUGX1ssemytL1s= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1560497480833162.54331996168685; Fri, 14 Jun 2019 00:31:20 -0700 (PDT) Received: from localhost ([::1]:49032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbggB-0004WF-Ra for importer@patchew.org; Fri, 14 Jun 2019 03:31:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39554) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgap-0008Fj-5F for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgao-0005TG-1n for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:25:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42988) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbgal-0005PV-0w; Fri, 14 Jun 2019 03:25:43 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 169375945D; Fri, 14 Jun 2019 07:25:42 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 53BDB60637; Fri, 14 Jun 2019 07:25:26 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:31 +0200 Message-Id: <20190614072432.820-6-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 14 Jun 2019 07:25:42 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 5/6] configure: Link test before auto-enabling the pulseaudio library 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Similarly to commit a73e82ef912, test the library links correctly before considering it as usable. This fixes using ./configure --static on Ubuntu 18.04: $ make subdir-aarch64-softmmu [...] LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/ld: cannot find -lpulse /usr/bin/ld: cannot find -lpulsecommon-11.1 collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 $ fgrep pulse config-host.mak PULSE_LIBS=3D-L/usr/lib/aarch64-linux-gnu/pulseaudio -lpulse -lpulsecommo= n-11.1 $ lsb_release -cri Distributor ID: Ubuntu Release: 18.04 Codename: bionic Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 4eed33e1b1..4d015496ae 100755 --- a/configure +++ b/configure @@ -3408,10 +3408,25 @@ for drv in $audio_drv_list; do =20 pa | try-pa) if $pkg_config libpulse --exists; then - pulse_libs=3D$($pkg_config libpulse --libs) - audio_pt_int=3D"yes" - if test "$drv" =3D "try-pa"; then - audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-pa/p= a/') + pulse_cflags=3D$($pkg_config --cflags libpulse) + if test "$static" =3D "yes"; then + pulse_libs=3D$($pkg_config --libs --static libpulse) + else + pulse_libs=3D$($pkg_config --libs libpulse) + fi + # Packaging for the static libraries is not always correct. + # At least ubuntu 18.04 ships only shared libraries. + write_c_skeleton + if ! compile_prog "$pulse_cflags" "$pulse_libs" ; then + unset pulse_cflags pulse_libs + if test "$drv" =3D "try-pa"; then + audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-= pa//') + fi + else + audio_pt_int=3D"yes" + if test "$drv" =3D "try-pa"; then + audio_drv_list=3D$(echo "$audio_drv_list" | sed -e 's/try-= pa/pa/') + fi fi else if test "$drv" =3D "try-pa"; then --=20 2.20.1 From nobody Mon May 6 01:55:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.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=1560497554; cv=none; d=zoho.com; s=zohoarc; b=DaY3jR6wAzaxs/zTrg4rXxuYq7Df8Wp0PupLcT6uETJ5MFsHyspQmORwhmJE0dWPf/pHvf8wUtgFFrdDbauK34aB+/Te1Gz4CxqIH06twdU0UoCt1iDmR0tTBk4u8h0wqsYAmE9g3H94SsxBK1WnbuQUzfu25Hih6s0aOqMoQJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560497554; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Ebahq94NGr9iXjYH3gcmtnG2yCC8bFDjCUpiPG1MLzI=; b=jnZvj/iMvEmoGBhJYCOZYl1AXDPI/XBO/FeNh+dIdLAJ1sNnKAmestteyT7UGXD9mgsTo3F4LkjyqhSsc3/NbMIvcv2+G2LappLb+ZcIZX9PS2HqDNg+NF592d98jJRk9BCknSr1YlfgPnsmpsPw2HnzUKbncz/PFSxgbYX01FA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.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 1560497554240673.3995570915674; Fri, 14 Jun 2019 00:32:34 -0700 (PDT) Received: from localhost ([::1]:49034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbghN-0005ri-9Z for importer@patchew.org; Fri, 14 Jun 2019 03:32:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39686) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbgb9-0008Li-AB for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbgb7-0005kh-9n for qemu-devel@nongnu.org; Fri, 14 Jun 2019 03:26:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57444) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbgay-0005bR-4V; Fri, 14 Jun 2019 03:25:58 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C4D22F8BD7; Fri, 14 Jun 2019 07:25:55 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 997A060637; Fri, 14 Jun 2019 07:25:42 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Fri, 14 Jun 2019 09:24:32 +0200 Message-Id: <20190614072432.820-7-philmd@redhat.com> In-Reply-To: <20190614072432.820-1-philmd@redhat.com> References: <20190614072432.820-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 14 Jun 2019 07:25:55 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 6/6] .travis.yml: Test static linking 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: Fam Zheng , Thomas Huth , integration@gluster.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, =?UTF-8?q?Lo=C3=AFc=20Minier?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Michael Tokarev , Bharata B Rao , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Niels de Vos Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- This job currently fails: LINK lm32-softmmu/qemu-system-lm32 /usr/bin/ld: cannot find -lgtk-3 /usr/bin/ld: cannot find -latk-bridge-2.0 /usr/bin/ld: cannot find -latspi /usr/bin/ld: cannot find -lsystemd /usr/bin/ld: cannot find -lgdk-3 /usr/bin/ld: cannot find -lwayland-egl /usr/bin/ld: cannot find -lmirclient /usr/bin/ld: cannot find -lmircore /usr/bin/ld: cannot find -lmircookie /usr/bin/ld: cannot find -lepoxy /usr/bin/ld: cannot find -latk-1.0 /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 /usr/bin/ld: cannot find -lselinux /usr/bin/ld: cannot find -lgtk-3 /usr/bin/ld: cannot find -latk-bridge-2.0 /usr/bin/ld: cannot find -latspi /usr/bin/ld: cannot find -lsystemd /usr/bin/ld: cannot find -lgdk-3 /usr/bin/ld: cannot find -lwayland-egl /usr/bin/ld: cannot find -lmirclient /usr/bin/ld: cannot find -lmircore /usr/bin/ld: cannot find -lmircookie /usr/bin/ld: cannot find -lepoxy /usr/bin/ld: cannot find -latk-1.0 /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 /usr/bin/ld: cannot find -lselinux /usr/bin/ld: attempted static link of dynamic object `/usr/lib/x86_64-l= inux-gnu/libz.so' collect2: error: ld returned 1 exit status Makefile:204: recipe for target 'qemu-system-lm32' failed make[1]: *** [qemu-system-lm32] Error 1 Makefile:472: recipe for target 'subdir-lm32-softmmu' failed make: *** [subdir-lm32-softmmu] Error 2 --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 08502c0aa2..6962fff826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -92,6 +92,11 @@ matrix: - CONFIG=3D"--disable-user --target-list-exclude=3D${MAIN_SOFTMMU_= TARGETS}" =20 =20 + # Test static linking + - env: + - CONFIG=3D"--static --target-list=3Dlm32-softmmu" + + # Just build tools and run minimal unit and softfloat checks - env: - BASE_CONFIG=3D"--enable-tools" --=20 2.20.1