2011/1/12 Robert Millan <r...@gnu.org>:
>> * The headers config/kfreebsd-gnu.h etc. override
>>  GLIBC_DYNAMIC_LINKER.  But the 64-bit configurations
>>  x86_64-*-kfreebsd*-gnu and x86_64-*-knetbsd*-gnu do not appear to
>>  use any header that would override GLIBC_DYNAMIC_LINKER32 and
>>  GLIBC_DYNAMIC_LINKER64, which are what LINK_SPEC in linux64.h
>>  actually uses.  Thus those configurations would use Linux-specific
>>  dynamic linker settings, which seems unlikely to be as intended.
>
> It's not as intended. On amd64 we use /lib/ld.so.1 and
> /lib/ld-kfreebsd-x86-64.so.1.

It seems x86_64-kfreebsd-gnu has been broken for a while.  I
just realized that I wrote a patch to fix this in 2006 [1], but
somehow it was never merged in GCC (actually I'm not even
sure I submitted it).

In the meantime Debian GNU/kFreeBSD has been using this
patch to build GCC on their "kfreebsd-amd64" port.

I can prepare an updated version of this patch (relative to
trunk + your linux.h overhaul [2]).

[1] 
http://svn.debian.org/viewsvn/glibc-bsd/trunk/web/patches/upstream-only/gcc.diff?view=markup&pathrev=1424

[2] http://gcc.gnu.org/ml/gcc-patches/2010-12/msg02055.html

-- 
Robert Millan

Reply via email to