From: "Andreas Färber" <andreas.faerber@web.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] configure: Detect when glibc implements makecontext() to always fail
Date: Fri, 14 Oct 2011 00:23:19 +0200 [thread overview]
Message-ID: <4E9764D7.5020103@web.de> (raw)
In-Reply-To: <4E96F51A.8080200@suse.de>
Am 13.10.2011 16:26, schrieb Andreas Färber:
> 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<peter.maydell@linaro.org>
>
> Tested-by: Andreas Färber <afaerber@suse.de>
>
>> ---
>> Compiling on an Ubuntu Natty ARM host will hit this.
>
> 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/ManPages/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
next prev parent reply other threads:[~2011-10-13 22:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 16:21 [Qemu-devel] [PATCH] configure: Detect when glibc implements makecontext() to always fail Peter Maydell
2011-10-13 14:26 ` Andreas Färber
2011-10-13 22:23 ` Andreas Färber [this message]
2011-10-14 12:30 ` Peter Maydell
2011-10-14 12:47 ` Paolo Bonzini
2011-10-14 12:55 ` Paolo Bonzini
2011-10-14 13:01 ` Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2012-02-23 16:16 Peter Maydell
2012-02-23 16:19 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E9764D7.5020103@web.de \
--to=andreas.faerber@web.de \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.