Browse Source

Don't install shadow.h if shadow password support is disabled.

Manuel Novoa III 20 years ago
parent
commit
9f77c8c493
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -237,6 +237,10 @@ endif
 ifneq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y)
 	# Remove getopt header since gnu getopt support is disabled.
 	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/getopt.h
+endif
+ifneq ($(strip $(HAS_SHADOW)),y)
+	# Remove getopt header since shadow password support is disabled.
+	$(RM) $(PREFIX)$(DEVEL_PREFIX)include/shadow.h
 endif
 	-@for i in `find  $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
 	    chmod 755 $$i; chmod 644 $$i/*.h > /dev/null 2>&1; \