From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6DAB6138336 for ; Sun, 22 Sep 2019 02:12:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3248CE099E; Sun, 22 Sep 2019 02:12:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1CAF8E099E for ; Sun, 22 Sep 2019 02:12:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A449034B470 for ; Sun, 22 Sep 2019 02:12:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F15A37FA for ; Sun, 22 Sep 2019 02:12:36 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1569118339.6bf5d3588d050b988ad838591404fb0545b6d416.tamiko@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/qemu/qemu-9999.ebuild X-VCS-Directories: app-emulation/qemu/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 6bf5d3588d050b988ad838591404fb0545b6d416 X-VCS-Branch: master Date: Sun, 22 Sep 2019 02:12:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4fe43cb0-5b97-465a-8cb6-84f59bd95ba5 X-Archives-Hash: f789c573e1c2330c17a9efbe99e0f9eb commit: 6bf5d3588d050b988ad838591404fb0545b6d416 Author: James Le Cuirot gentoo org> AuthorDate: Sat Sep 21 23:06:31 2019 +0000 Commit: Matthias Maier gentoo org> CommitDate: Sun Sep 22 02:12:19 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf5d358 app-emulation/qemu: Fix cross-compiling for MinGW (Windows) Yes, this really works! By default, the configure script shoves everything in the same standalone directory for Windows, hence the need to specify more paths. It doesn't work from a standalone directory unless you build it statically anyway because it can't find the dependent DLLs in /usr/bin. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot gentoo.org> Signed-off-by: Matthias Maier gentoo.org> app-emulation/qemu/qemu-9999.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 58a7d0b8580..b26d0b2869d 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -363,8 +363,9 @@ src_prepare() { default - # Fix ld and objcopy being called directly - tc-export AR LD OBJCOPY + # Use correct toolchain to fix cross-compiling + tc-export AR LD NM OBJCOPY PKG_CONFIG + export WINDRES=${CHOST}-windres # Verbose builds MAKEOPTS+=" V=1" @@ -391,8 +392,13 @@ qemu_src_configure() { local conf_opts=( --prefix=/usr --sysconfdir=/etc + --bindir=/usr/bin --libdir=/usr/$(get_libdir) + --datadir=/usr/share --docdir=/usr/share/doc/${PF}/html + --mandir=/usr/share/man + --with-confsuffix=/qemu + --localstatedir=/var --disable-bsd-user --disable-guest-agent --disable-strip