[klibc] [mips] fix path of linker script
Sam Ravnborg
sam at ravnborg.org
Sun Jan 8 11:15:29 PST 2006
On Sun, Jan 08, 2006 at 06:59:32PM +0000, Martin Michlmayr wrote:
> The path of the linker script on mips is not correct:
>
> tbm at raq2:~/tmp/src/klibc-1.1.14$ make
> KLIBCLD klibc/libc.so
> ld: cannot open linker script file arch/mips/klibc.ld: No such file or directory
>
>
> diff -urN klibc-1.1.16~/klibc/arch/mips/MCONFIG klibc-1.1.16/klibc/arch/mips/MCONFIG
> --- klibc-1.1.16~/klibc/arch/mips/MCONFIG 2006-01-06 06:11:43.000000000 +0000
> +++ klibc-1.1.16/klibc/arch/mips/MCONFIG 2006-01-08 16:35:58.000000000 +0000
> @@ -12,4 +12,4 @@
> BITSIZE = 32
>
> # Extra linkflags when building the shared version of the library
> -SHAREDFLAGS = -T arch/$(ARCH)/klibc.ld
> +SHAREDFLAGS = -T klibc/arch/$(ARCH)/klibc.ld
If you use $(src) the change will work in both trees - like this:
> +SHAREDFLAGS = -T $(src)/arch/$(ARCH)/klibc.ld
We like klibc to be buildable both as standalone and in the kernel.
Untested - so please test before resubmit...
Sam
More information about the klibc
mailing list