summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libutil/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libutil/Makefile b/libutil/Makefile
index 7210aaaa4..399d52b2d 100644
--- a/libutil/Makefile
+++ b/libutil/Makefile
@@ -28,7 +28,10 @@ LIBUTIL=libutil.a
LIBUTIL_SHARED=libutil.so
LIBUTIL_SHARED_FULLNAME=libutil-$(MAJOR_VERSION).$(MINOR_VERSION).so
-CSRC=forkpty.c login.c login_tty.c logout.c logwtmp.c openpty.c
+CSRC=login.c login_tty.c logout.c logwtmp.c openpty.c
+ifeq ($(strip $(HAS_MMU)),true)
+ CSRC+=forkpty.c
+endif
OBJS=$(patsubst %.c,%.o, $(CSRC))
all: $(OBJS) $(LIBC)