[RFC] Build on OSX
Daniel Jacobowitz
drow@false.org
Tue Feb 27 16:57:00 GMT 2007
On Mon, Feb 12, 2007 at 06:19:26PM +0900, Masaki Muranaka wrote:
> Hello,
>
> I've trying to build cross-gdb on OSX host from CVS head.
> And the build was failed with following message:
>
> /usr/bin/ld: warning multiple definitions of symbol _locale_charset
> ./../intl/libintl.a(localcharset.o) definition of _locale_charset in
> section (__TEXT,__text)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libiconv.dylib
> (localcharset.o) definition of _locale_charset
>
>
> It is well known issue. OSX (maybe also Darwin) hosts
> need to link 'resolv' library beforge libintl.a.
>
> Here is a brute-forced patch. But I don't think this is
> the good solution.
I know that people built GCC on this platform all the time. GCC
doesn't explicitly do this, so why does it work for GCC but not for
GDB? I would recommend building GCC and trying to figure out what's
different.
(You can build just a C compiler with --enable-languages=c, that's
much quicker.)
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list