]> mj.ucw.cz Git - pciutils.git/blobdiff - Makefile
Makefile: change STRIP to '--strip-program' when cross-compile
[pciutils.git] / Makefile
index 3df076d74702fef34261de31ab3a08c57c8ccdf7..9431461ee7faa0c3e7afe7e4304c68cc263c612d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,11 @@ PKGCFDIR=$(LIBDIR)/pkgconfig
 # Commands
 INSTALL=install
 DIRINSTALL=install -d
-STRIP=-s
 ifdef CROSS_COMPILE
+STRIP=--strip-program $(CROSS_COMPILE)-strip
 CC=$(CROSS_COMPILE)gcc
 else
+STRIP=-s
 CC=cc
 endif
 AR=$(CROSS_COMPILE)ar