diff options
author | marcel <marcel@FreeBSD.org> | 2011-03-17 04:40:37 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2011-03-17 04:40:37 +0000 |
commit | 70f17b3a4203d9296814ef0afb0029783f905593 (patch) | |
tree | 6b4d09f7e49506cc86ed23337634f633941f746c /lib | |
parent | 799909333c8e20e2a5cacce5b370b634f395b037 (diff) | |
download | FreeBSD-src-70f17b3a4203d9296814ef0afb0029783f905593.zip FreeBSD-src-70f17b3a4203d9296814ef0afb0029783f905593.tar.gz |
When building libc with the syscall compatibility, don't also generate the
syscall assembly files. This results in conflicting dependencies and can
cause unexpected results for parallel builds. This is because the .c file
and the .S file both generate the same .o file.
Submitted by: Simon Gerraty <sjg@juniper.net>
Sponsored by: Juniper Networks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/Makefile.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 288d66c..152a14a 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -18,7 +18,10 @@ # Sources common to both syscall interfaces: SRCS+= stack_protector.c stack_protector_compat.c __error.c .if !defined(WITHOUT_SYSCALL_COMPAT) -SRCS+= fcntl.c ftruncate.c lseek.c mmap.c pread.c pwrite.c truncate.c +SYSCALL_COMPAT_SRCS= fcntl.c ftruncate.c lseek.c mmap.c pread.c \ + pwrite.c truncate.c +SRCS+= ${SYSCALL_COMPAT_SRCS} +NOASM+= ${SYSCALL_COMPAT_SRCS:S/.c/.o/} PSEUDO+= _fcntl.o .endif SRCS+= sigwait.c |