diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-19 23:00:26 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-19 23:04:58 -0500 |
commit | 4698bde2367f971fed3924f2dee736e0dfe37bb9 (patch) | |
tree | a5f0534b0b3f428df7b93eb34d390b028b8d2162 /src | |
parent | 37e7d24c0cb9fd2d18ab332980c31cf470454d93 (diff) | |
download | plan9port-4698bde2367f971fed3924f2dee736e0dfe37bb9.tar.gz plan9port-4698bde2367f971fed3924f2dee736e0dfe37bb9.tar.bz2 plan9port-4698bde2367f971fed3924f2dee736e0dfe37bb9.zip |
libthread: clean up sysofiles.sh a bit more
Diffstat (limited to 'src')
-rw-r--r-- | src/libthread/sysofiles.sh | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/src/libthread/sysofiles.sh b/src/libthread/sysofiles.sh index 8a65d0f6..20811cdf 100644 --- a/src/libthread/sysofiles.sh +++ b/src/libthread/sysofiles.sh @@ -7,37 +7,22 @@ NetBSD) echo ${SYSNAME}-${OBJTYPE}-asm.o $SYSNAME.o stkmalloc.o ;; OpenBSD) - echo ${SYSNAME}-${OBJTYPE}-asm.o pthread.o stkmmap.o + echo pthread.o stkmmap.o ;; *) echo pthread.o stkmalloc.o esac # Various libc don't supply swapcontext, makecontext, so we do. -case "$OBJTYPE-$SYSNAME" in -386-OpenBSD) - echo 386-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 +case "$SYSNAME-$OBJTYPE" in +Darwin-x86_64 | Linux-arm | Linux-sparc64 | NetBSD-arm | OpenBSD-386 | OpenBSD-power | OpenBSD-x86_64) + echo $OBJTYPE-ucontext.o ;; 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 |