summaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorHollis Blanchard <hollis@penguinppc.org>2010-08-04 17:21:34 -0700
committerAlexander Graf <agraf@suse.de>2010-08-26 18:18:26 +0200
commit52ba784d357fac20e137cf1393437437c43a3fc4 (patch)
tree1cfffeaad85e1a6f72652928df111535da20f973 /Makefile.target
parent419ef5f1c6a9614e8ddcb0b0f826de692e7e4a43 (diff)
downloadqemu-52ba784d357fac20e137cf1393437437c43a3fc4.tar.gz
Fix "make install" with a cross toolchain
We must be able to use a non-native strip executable, but not all versions of 'install' support the --strip-program option (e.g. OpenBSD). Accordingly, we can't use 'install -s', and we must run strip separately. Signed-off-by: Hollis Blanchard <hollis@penguinppc.org> Cc: blauwirbel@gmail.com
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.target b/Makefile.target
index c8281e90a9..18826bb356 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -329,7 +329,10 @@ clean:
install: all
ifneq ($(PROGS),)
- $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
+ $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)"
+ifneq ($(STRIP),)
+ $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
+endif
endif
# Include automatically generated dependency files