diff options
Diffstat (limited to 'lib/libc_r/sys/Makefile.inc')
-rw-r--r-- | lib/libc_r/sys/Makefile.inc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/libc_r/sys/Makefile.inc b/lib/libc_r/sys/Makefile.inc index 2c4ee0df2fd..79b6afe2a4d 100644 --- a/lib/libc_r/sys/Makefile.inc +++ b/lib/libc_r/sys/Makefile.inc @@ -1,17 +1,23 @@ -# $Id: Makefile.inc,v 1.3 1999/01/06 05:36:18 d Exp $ -# $OpenBSD: Makefile.inc,v 1.3 1999/01/06 05:36:18 d Exp $ +# $Id: Makefile.inc,v 1.4 1999/11/25 07:01:29 d Exp $ +# $OpenBSD: Makefile.inc,v 1.4 1999/11/25 07:01:29 d Exp $ .PATH: ${.CURDIR}/sys ${.CURDIR}/arch/${MACHINE_ARCH} -SRCS+= uthread_error.c _atomic_lock.c slow_atomic_lock.c +SRCS+= uthread_error.c _atomic_lock.c slow_atomic_lock.c SRCS+= _sys_aliases.c CLEANFILES += _sys_aliases.c _sys_aliases.c: ${.CURDIR}/Makefile ${LIBCSRCDIR}/sys/Makefile.inc - (echo '#include <sys/cdefs.h>'; \ - for fn in ${ASM:R} ${PSEUDO:R} ""; do \ + echo '#include <sys/cdefs.h>' > ${.TARGET} +.if ${MACHINE} == "alpha" + # This kludge will disappear when we shift to -lpthread + echo '#define __indr_reference(old,new)' \ + '__asm__(".globl "#new";"#new": jmp $$31,"#old)' > ${.TARGET} + +.endif + for fn in ${ASM:R} ${PSEUDO:R} ""; do \ case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \ *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \ esac; \ - done ) > ${.TARGET} + done >> ${.TARGET} |