This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Release 2.23
- From: Tristan Gingold <gingold at adacore dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: binutils Development <binutils at sourceware dot org>
- Date: Mon, 10 Sep 2012 09:48:00 +0200
- Subject: Re: Release 2.23
- References: <EFF1B4C0-3885-4580-8DA9-23540D588E9E@adacore.com> <504CA3A0.4020901@ubuntu.com>
On Sep 9, 2012, at 4:11 PM, Matthias Klose wrote:
> one more change which should go the trunk and the branch. currently the builds
> on kfreebsd are broken,
Ok for the branch too.
>
> In file included from ../../bfd/sysdep.h:30:0,
> from ../../bfd/archures.c:24:
> ./config.h:7:4: error: #error config.h must be #included before system headers
> make[5]: *** [archive.lo] Error 1
>
> this is because gcc for kfreebsd defines the __GLIBC__ macro in
> gcc/config/kfreebsd-gnu.h:
>
> #define GNU_USER_TARGET_OS_CPP_BUILTINS() \
> do \
> { \
> builtin_define ("__FreeBSD_kernel__"); \
> builtin_define ("__GLIBC__"); \
> builtin_define_std ("unix"); \
> builtin_assert ("system=unix"); \
> builtin_assert ("system=posix"); \
> } \
> while (0)
>
>
> a quick fix for this is to disable this safety check on kfreebsd by checking
> that the __FreeBSD_kernel__ macro isn't defined.
>
> Matthias
>
> <kfreebsd-buildfix.diff>