Don't build libc/pthread if pthreasa are disable. Fix a warning in dirent logic if mountpoints are disabled.

This commit is contained in:
Gregory Nutt
2017-02-16 09:53:13 -06:00
parent 42e8b12ec3
commit b4d378adb8
2 changed files with 8 additions and 3 deletions
+4 -3
View File
@@ -33,6 +33,8 @@
#
############################################################################
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
# Add the pthread C files to the build
CSRCS += pthread_attr_init.c pthread_attr_destroy.c
@@ -54,9 +56,6 @@ ifeq ($(CONFIG_SMP),y)
CSRCS += pthread_attr_getaffinity.c pthread_attr_setaffinity.c
endif
ifeq ($(CONFIG_MUTEX_TYPES),y)
endif
ifeq ($(CONFIG_BUILD_PROTECTED),y)
CSRCS += pthread_startup.c
endif
@@ -65,3 +64,5 @@ endif
DEPPATH += --dep-path pthread
VPATH += :pthread
endif