Release 2.23
Tristan Gingold
gingold@adacore.com
Mon Sep 10 07:48:00 GMT 2012
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>
More information about the Binutils
mailing list