summary refs log tree commit diff
path: root/stdio-common/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r--stdio-common/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 183f140661..b8f1418f73 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -21,7 +21,7 @@
 #
 subdir	:= stdio-common
 
-headers	:= bits/stdio_lim.h printf.h
+headers	:= printf.h
 
 routines	:=							      \
 	ctermid cuserid							      \
@@ -36,6 +36,8 @@ routines	:=							      \
 	remove rename							      \
 	lockfile
 
+install-others := $(inst_includedir)/bits/stdio_lim.h
+
 aux	:= errlist siglist
 distribute := _itoa.h printf-parse.h stdio_lim.h.in
 
@@ -56,6 +58,12 @@ CFLAGS-scanf4.c = -Wno-format
 CFLAGS-scanf7.c = -Wno-format
 CFLAGS-tst-printfsz.c = -Wno-format
 
+$(inst_includedir)/bits/stdio_lim.h: $(common-objpfx)bits/stdio_lim.h
+	$(make-target-directory)
+	if test -r $@ && cmp -s $< $@; \
+	then echo 'gnu/lib-names.h unchanged'; \
+	else $(INSTALL_DATA) $< $@; fi
+
 ifeq ($(stdio),libio)
 ifneq (,$(filter %REENTRANT, $(defines)))
 CPPFLAGS += -D_IO_MTSAFE_IO