diff mbox

Fix non-LFS build on MIPS.

Message ID 1390614298.3022.128.camel@ubuntu-sellcey
State Accepted, archived
Headers show

Commit Message

Steve Ellcey Jan. 25, 2014, 1:44 a.m. UTC
The MIPS build is failing when UCLIBC_HAS_LFS is set to "n"
because posix_fadvise64.c is included in the build when it
should not be.

Signed-off-by: Steve Ellcey <sellcey@mips.com>
---
 libc/sysdeps/linux/mips/Makefile.arch |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Bernhard Reutner-Fischer Feb. 3, 2014, 10:21 a.m. UTC | #1
On Fri, Jan 24, 2014 at 05:44:58PM -0800, Steve Ellcey wrote:
> The MIPS build is failing when UCLIBC_HAS_LFS is set to "n"
> because posix_fadvise64.c is included in the build when it
> should not be.

Applied, thanks!
diff mbox

Patch

diff --git a/libc/sysdeps/linux/mips/Makefile.arch b/libc/sysdeps/linux/mips/Makefile.arch
index 6d59b62..2c2e66f 100644
--- a/libc/sysdeps/linux/mips/Makefile.arch
+++ b/libc/sysdeps/linux/mips/Makefile.arch
@@ -12,7 +12,8 @@  CSRC-y := \
 SSRC-y := bsd-_setjmp.S bsd-setjmp.S setjmp.S syscall.S pipe.S syscall_error.S
 
 CSRC-$(UCLIBC_LINUX_SPECIFIC) += cacheflush.c sysmips.c
-CSRC-$(UCLIBC_HAS_ADVANCED_REALTIME) += posix_fadvise.c posix_fadvise64.c
+CSRC-$(UCLIBC_HAS_ADVANCED_REALTIME) += posix_fadvise.c
+CSRC-$(if $(findstring yy,$(UCLIBC_HAS_LFS)$(UCLIBC_HAS_ADVANCED_REALTIME)),y) += posix_fadvise64.c
 SSRC-$(if $(UCLIBC_HAS_THREADS_NATIVE),,y) += vfork.S clone.S
 SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.S setcontext.S getcontext.S \
 	swapcontext.S