mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
libthread: clean up sysofiles.sh a bit more
This commit is contained in:
parent
37e7d24c0c
commit
4698bde236
1 changed files with 10 additions and 25 deletions
|
@ -7,37 +7,22 @@ NetBSD)
|
||||||
echo ${SYSNAME}-${OBJTYPE}-asm.o $SYSNAME.o stkmalloc.o
|
echo ${SYSNAME}-${OBJTYPE}-asm.o $SYSNAME.o stkmalloc.o
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
echo ${SYSNAME}-${OBJTYPE}-asm.o pthread.o stkmmap.o
|
echo pthread.o stkmmap.o
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo pthread.o stkmalloc.o
|
echo pthread.o stkmalloc.o
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Various libc don't supply swapcontext, makecontext, so we do.
|
# Various libc don't supply swapcontext, makecontext, so we do.
|
||||||
case "$OBJTYPE-$SYSNAME" in
|
case "$SYSNAME-$OBJTYPE" in
|
||||||
386-OpenBSD)
|
Darwin-x86_64 | Linux-arm | Linux-sparc64 | NetBSD-arm | OpenBSD-386 | OpenBSD-power | OpenBSD-x86_64)
|
||||||
echo 386-ucontext.o
|
echo $OBJTYPE-ucontext.o
|
||||||
;;
|
|
||||||
arm-Linux)
|
|
||||||
echo arm-ucontext.o
|
|
||||||
echo Linux-arm-context.o # setcontext, getcontext
|
|
||||||
;;
|
|
||||||
arm-NetBSD)
|
|
||||||
echo arm-ucontext.o
|
|
||||||
;;
|
|
||||||
power-OpenBSD)
|
|
||||||
echo power-ucontext.o
|
|
||||||
;;
|
|
||||||
sparc64-Linux)
|
|
||||||
echo sparc64-ucontext.o
|
|
||||||
echo Linux-sparc64-swapcontext.o # setcontext, getcontext
|
|
||||||
;;
|
|
||||||
x86_64-Darwin)
|
|
||||||
echo x86_64-ucontext.o
|
|
||||||
echo Darwin-x86_64-asm.o # setcontext, getcontext
|
|
||||||
;;
|
|
||||||
x86_64-OpenBSD)
|
|
||||||
echo x86_64-ucontext.o
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# A few libc don't supply setcontext, getcontext, so we do.
|
||||||
|
case "$SYSNAME-$OBJTYPE" in
|
||||||
|
Darwin-x86_64 | Linux-arm | Linux-sparc64 | OpenBSD-386 | OpenBSD-power | OpenBSD-x86_64)
|
||||||
|
echo $SYSNAME-$OBJTYPE-asm.o
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in a new issue