[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to `gldelf_i386_fbsd_add_sysroot'
From: |
Vladimir Merzliakov |
Subject: |
Re: undefined reference to `gldelf_i386_fbsd_add_sysroot' |
Date: |
Thu, 30 Jan 2003 11:22:49 +0300 |
I succesfully build binutils with your patch.
Can be this patch added to binutils CVS codebase?
Vladimir Merzliakov
----- Original Message -----
From: "Daniel Jacobowitz" <address@hidden>
To: "Vladimir Merzliakov" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, January 28, 2003 12:09 AM
Subject: Re: undefined reference to `gldelf_i386_fbsd_add_sysroot'
[bug report skiped]
>
> My fault. Does this (untested) patch work for you?
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
> 2003-01-27 Daniel Jacobowitz <address@hidden>
>
> * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
> outside of GNU/Linux conditional.
>
> Index: elf32.em
> ===================================================================
> RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
> retrieving revision 1.89
> diff -u -p -r1.89 elf32.em
> --- elf32.em 17 Jan 2003 10:36:49 -0000 1.89
> +++ elf32.em 27 Jan 2003 21:07:21 -0000
> @@ -440,9 +440,7 @@ gld${EMULATION_NAME}_search_needed (path
>
> EOF
> if [ "x${USE_LIBPATH}" = xyes ] ; then
> - case ${target} in
> - *-*-linux-gnu*)
> - cat >>e${EMULATION_NAME}.c <<EOF
> + cat >>e${EMULATION_NAME}.c <<EOF
>
> /* Add the sysroot to every entry in a colon-separated path. */
>
> @@ -482,6 +480,10 @@ gld${EMULATION_NAME}_add_sysroot (path)
> return ret;
> }
>
> +EOF
> + case ${target} in
> + *-*-linux-gnu*)
> + cat >>e${EMULATION_NAME}.c <<EOF
> /* For a native linker, check the file /etc/ld.so.conf for directories
> in which we may find shared libraries. /etc/ld.so.conf is really
> only meaningful on Linux. */
>