summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-26 15:33:27 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-26 15:33:27 +0000
commitdef602f4d2042a5153b6c7dd86c961ddc05061dc (patch)
tree248102186833a58f1d9290435a8f7816f2b93ebf
parent40b8158b60e8b19dd5e2ed6bb796421ce49ff53a (diff)
- revert r23469. If gnu getopt is disabled, then there is no getopt.h.
In these cases the getopt stuff comes from unistd.h (which includes bits/getopt.h for us)
-rw-r--r--Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index d9f239ff8..d2590882f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -254,6 +254,12 @@ ifneq ($(UCLIBC_HAS_GLOB),y)
# Remove glob header since glob support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/glob.h
endif
+ifneq ($(UCLIBC_HAS_GNU_GETOPT),y)
+ifneq ($(UCLIBC_HAS_GETOPT_LONG),y)
+ # Remove getopt header since gnu getopt support is disabled.
+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/getopt.h
+endif
+endif
ifneq ($(UCLIBC_HAS_SHADOW),y)
# Remove shadow header since shadow password support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/shadow.h