[PATCH] newlib: add missing mkdir to header install

Corinna Vinschen vinschen@redhat.com
Wed Feb 16 08:50:52 GMT 2022


On Feb 15 21:07, Mike Frysinger wrote:
> 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 67fb1e8ba074..6d3b60b330b0 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 969027f7cf00..5a83f8608451 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 ; \
> -- 
> 2.34.1

GTG

Thanks,
Corinna



More information about the Newlib mailing list