On 21/07/2011 23.05, Rob Landley wrote:
> I needed the following patch to make sh4 and sparc build with 
> pthreads.old in current git:
> 
> diff --git a/libc/sysdeps/linux/sh/Makefile.arch 
> b/libc/sysdeps/linux/sh/Makefile.arch
> index 92e262b..6cbc681 100644
> --- a/libc/sysdeps/linux/sh/Makefile.arch
> +++ b/libc/sysdeps/linux/sh/Makefile.arch
> @@ -9,4 +9,4 @@
>  CSRC := \
>       mmap.c pipe.c __init_brk.c brk.c sbrk.c pread_write.c cacheflush.c
>  
> -SSRC := setjmp.S __longjmp.S ___fpscr_values.S vfork.S
> +SSRC := setjmp.S __longjmp.S ___fpscr_values.S vfork.S clone.S

Looks fine. The only I can test.
Applied.


> diff --git a/libc/sysdeps/linux/sparc/Makefile.arch 
> b/libc/sysdeps/linux/sparc/Makefile.arch
> index d0cae9f..820b2fa 100644
> --- a/libc/sysdeps/linux/sparc/Makefile.arch
> +++ b/libc/sysdeps/linux/sparc/Makefile.arch
> @@ -13,7 +13,7 @@ SSRC := \
>  
>  ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
>  CSRC += sigaction.c
> -SSRC += fork.S vfork.S
> +SSRC += fork.S vfork.S clone.S
>  endif
>  

this fix is consistent with SH4 one so it should fine as well, but...

>  # check weather __LONG_DOUBLE_128__ is defined (long double support)
> 
> I also had to symlink:
> 
>   ln -s ../../../linuxthreads/sysdeps/pthread/tcb-offsets.h 
> libpthread/linuxthreads.old/sysdeps/pthread/tcb-offsets.h
> 

this should be done differently IMO, likely a change in the buildsys.

> Because you only have that link in the new pthreads and the sparc build 
> breaks looking for it on the old one.
> 
> 
Rob
> 

Thanks,
Carmelo

_______________________________________________
> uClibc mailing list
> uClibc@uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
> 

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to