[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool bi
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries |
Date: |
Wed, 4 Jun 2014 09:24:28 +0100 |
On 4 June 2014 02:37, Sam Bobroff <address@hidden> wrote:
> Allow "make install" to handle tool binaries that reside in
> sub-directories.
>
> Without this patch "make install" will fail if it needs to strip
> a tool binary (e.g. debugging is not enabled) that is installed
> from a subdirectory. An example is fsdev/virtfs-proxy-helper.
>
> Signed-off-by: Sam Bobroff <address@hidden>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index d830483..9c23265 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -380,7 +380,7 @@ install-datadir install-localstatedir
> ifneq ($(TOOLS),)
> $(INSTALL_PROG) $(TOOLS) "$(DESTDIR)$(bindir)"
> ifneq ($(STRIP),)
> - $(STRIP) $(TOOLS:%="$(DESTDIR)$(bindir)/%")
> + $(STRIP) $(foreach T,$(TOOLS),"$(DESTDIR)$(bindir)/$(notdir $T)")
> endif
> endif
> ifneq ($(CONFIG_MODULES),)
> --
> 1.7.10.4
We should probably also do this on the other invocation of $(STRIP}
for installs into libexecdir.
thanks
-- PMM