From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RETgS-00004q-JI for qemu-devel@nongnu.org; Thu, 13 Oct 2011 18:23:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RETgO-0003k8-GS for qemu-devel@nongnu.org; Thu, 13 Oct 2011 18:23:24 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:58585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RETgO-0003jj-8m for qemu-devel@nongnu.org; Thu, 13 Oct 2011 18:23:20 -0400 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate02.web.de (Postfix) with ESMTP id 79DA41B108861 for ; Fri, 14 Oct 2011 00:23:15 +0200 (CEST) Message-ID: <4E9764D7.5020103@web.de> Date: Fri, 14 Oct 2011 00:23:19 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1318436475-20691-1-git-send-email-peter.maydell@linaro.org> <4E96F51A.8080200@suse.de> In-Reply-To: <4E96F51A.8080200@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] configure: Detect when glibc implements makecontext() to always fail List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org Am 13.10.2011 16:26, schrieb Andreas F=E4rber: > Am 12.10.2011 18:21, schrieb Peter Maydell: >> Improve the configure test for presence of ucontext functions by >> making linker warnings fatal; this allows us to detect when we are >> linked with a glibc which implements makecontext() to always return >> ENOSYS. >> >> Signed-off-by: Peter Maydell >=20 > Tested-by: Andreas F=E4rber >=20 >> --- >> Compiling on an Ubuntu Natty ARM host will hit this. >=20 > Works on Ubuntu Maverick ARM host as well. Erm... This works great, also for accept4(), on Linux, but it's not portable. Apple ld(1) doesn't seem to have --fatal-warnings. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Ma= nPages/Xcode-3.2.5/man1/ld.1.html Sun/Oracle ld(1) does seem to have it as alias to -z fatal-warnings. http://download.oracle.com/docs/cd/E19963-01/html/821-1461/ld-1.html So, we'd have to check for valid linker options first? Andreas