From patchwork Tue Nov 7 23:46:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Smith X-Patchwork-Id: 10047375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 998CE60360 for ; Tue, 7 Nov 2017 23:47:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8183429925 for ; Tue, 7 Nov 2017 23:47:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73C0829A72; Tue, 7 Nov 2017 23:47:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5498329925 for ; Tue, 7 Nov 2017 23:47:15 +0000 (UTC) Received: from localhost ([::1]:56338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCDaM-0005WO-7A for patchwork-qemu-devel@patchwork.kernel.org; Tue, 07 Nov 2017 18:47:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCDZh-0005WH-Fy for qemu-devel@nongnu.org; Tue, 07 Nov 2017 18:46:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCDZg-0005YZ-Md for qemu-devel@nongnu.org; Tue, 07 Nov 2017 18:46:33 -0500 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:44606 helo=mail.comstyle.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCDZg-0005Oj-3y for qemu-devel@nongnu.org; Tue, 07 Nov 2017 18:46:32 -0500 Received: from mail.comstyle.com (localhost [127.0.0.1]) by mail.comstyle.com (Postfix) with ESMTP id B547A9843B for ; Tue, 7 Nov 2017 18:46:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=comstyle.com; h=date:from :to:subject:message-id:mime-version:content-type; s=selector1; bh=FdYPcKK5D4NaNWkmqj1TQXMYgTk=; b=HVuK3bYr74GUEo2bOlMmZ+WIQINW Q2N5heGBLz3a7Zc/TjauDuKVTtDUhv+2qxS+IoTcsdJNvl+ADyCWtps74ujkIoBw 3KYMJdr0GbRTh8E8bw0pQOEmiz4unAHaeAn1O0yQ17a2MNX+V9CbEPUesPzA4Fzt oZ9/5ZpHsDjV98M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=comstyle.com; h=date:from:to :subject:message-id:mime-version:content-type; q=dns; s= selector1; b=chmLxAIdg2p0HnRsOlqDgRYUj11WRZEgRzq7uBi9gR94yiUcZ4v xZ2PQZ0yFx0fayLBpolGiGsGiOfZ0pyfyLwiwiXaUG6Y2ME+VzrOpmQYM3VjTJVt l7LJz/i9t8HJYTNBu1CjS9BmzW3FaEcR5BhWQDBkfGHO/lhXCgxBtsSM= Received: from humpty.home.comstyle.com (unknown [IPv6:2607:fea8:12c0:f00:90d3:1871:bd7:c7e5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 5CC8E98439 for ; Tue, 7 Nov 2017 18:46:17 -0500 (EST) Date: Tue, 7 Nov 2017 18:46:11 -0500 From: Brad Smith To: qemu-devel@nongnu.org Message-ID: <20171107234608.GA395@humpty.home.comstyle.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:1d:8c::2 Subject: [Qemu-devel] [PATCH v2] configure: Deal with OpenBSD/i386 emulation linker X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP OpenBSD/i386 uses elf_i386_obsd for the emulation linker. Signed-off-by: Brad Smith diff --git a/configure b/configure index dd73cce62f..c9dd747283 100755 --- a/configure +++ b/configure @@ -5159,9 +5159,9 @@ if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \ "$targetos" != "Darwin" -a "$targetos" != "SunOS" -a \ "$softmmu" = yes ; then # Different host OS linkers have different ideas about the name of the ELF - # emulation. Linux and OpenBSD use 'elf_i386'; FreeBSD uses the _fbsd - # variant; and Windows uses i386pe. - for emu in elf_i386 elf_i386_fbsd i386pe; do + # emulation. Linux and OpenBSD/amd64 use 'elf_i386'; FreeBSD uses the _fbsd + # variant; OpenBSD/i386 uses the _obsd variant; and Windows uses i386pe. + for emu in elf_i386 elf_i386_fbsd elf_i386_obsd i386pe; do if "$ld" -verbose 2>&1 | grep -q "^[[:space:]]*$emu[[:space:]]*$"; then ld_i386_emulation="$emu" roms="optionrom"