summaryrefslogtreecommitdiff
path: root/libc/unistd/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/Makefile.in')
-rw-r--r--libc/unistd/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/unistd/Makefile.in b/libc/unistd/Makefile.in
index 5bd612465..6e85e10c9 100644
--- a/libc/unistd/Makefile.in
+++ b/libc/unistd/Makefile.in
@@ -19,9 +19,12 @@ CSRC := $(filter-out daemon.c,$(CSRC))
endif
ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
-CSRC := $(filter-out getopt-susv3.c,$(CSRC))
+CSRC := $(filter-out getopt-susv3.c getopt_long-susv3.c,$(CSRC))
else
CSRC := $(filter-out getopt.c,$(CSRC))
+ifneq ($(UCLIBC_HAS_GETOPT_LONG),y)
+CSRC := $(filter-out getopt_long-susv3.c,$(CSRC))
+endif
endif
ifeq ($(UCLIBC_HAS_GNU_GETSUBOPT),y)