From 01ed65ed09909a278580792653c77e169fb7f561 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Feb 2022 21:07:27 -0500 Subject: [PATCH] newlib: add missing mkdir to header install Make sure these subdirs exist before trying to install headers into them. --- newlib/Makefile.am | 1 + newlib/Makefile.in | 1 + 2 files changed, 2 insertions(+) diff --git a/newlib/Makefile.am b/newlib/Makefile.am index 67fb1e8ba..6d3b60b33 100644 --- a/newlib/Makefile.am +++ b/newlib/Makefile.am @@ -335,6 +335,7 @@ install-data-local: install-toollibLIBRARIES install-multi done ; \ for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \ if [ -d $$i ]; then \ + $(MKDIR_P) $(DESTDIR)$(tooldir)/include/`basename $$i`; \ for j in $$i/*.h; do \ $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/`basename $$i`/`basename $$j`; \ done ; \ diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 969027f7c..5a83f8608 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -1624,6 +1624,7 @@ install-data-local: install-toollibLIBRARIES install-multi done ; \ for i in $(srcdir)/libc/sys/$(sys_dir)/include/*; do \ if [ -d $$i ]; then \ + $(MKDIR_P) $(DESTDIR)$(tooldir)/include/`basename $$i`; \ for j in $$i/*.h; do \ $(INSTALL_DATA) $$j $(DESTDIR)$(tooldir)/include/`basename $$i`/`basename $$j`; \ done ; \