diff options
| author | austinf <austinf@localhost> | 2009-03-21 20:42:07 +0000 |
|---|---|---|
| committer | austinf <austinf@localhost> | 2009-03-21 20:42:07 +0000 |
| commit | bd623c44decda992caabc8c15a22922e1be316bc (patch) | |
| tree | c43c3ec3956710a450f9146cfbaf1e6e80b56eb6 /libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch | |
| parent | 024800c5eaa3c27db28d73f7ac6b7a1c23523f00 (diff) | |
| download | uClibc-alpine-bd623c44decda992caabc8c15a22922e1be316bc.tar.bz2 uClibc-alpine-bd623c44decda992caabc8c15a22922e1be316bc.tar.xz | |
sparc nptl needs it's own lowlevellock.c
* Since sparc < v9 doesn't have a real compare exchange instruction,
we implement it with a test and set.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch')
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch index 6a0d2b51d..5f799499b 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch @@ -6,12 +6,14 @@ # libpthread_SSRC = pt-vfork.S clone.S -libpthread_CSRC = pthread_once.c +libpthread_CSRC = pthread_once.c lowlevellock.c -libc_a_CSRC = fork.c +libc_a_CSRC = fork.c libc-lowlevellock.c libc_a_SSRC = clone.S vfork.S CFLAGS-OMIT-fork.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 +CFLAGS-OMIT-libc-lowlevellock.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 + ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y) CFLAGS-fork.c = -D__USE_STDIO_FUTEXES__ endif @@ -19,6 +21,7 @@ endif ASFLAGS-pt-vfork.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -D_LIBC_REENTRANT -DUSE___THREAD CFLAGS-pthread_once.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 +CFLAGS-lowlevellock.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 ASFLAGS-clone.S = -D_LIBC_REENTRANT |
