summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormingrui.ren <mingrui.ren@bst.ai>2023-03-17 09:44:34 +0800
committermingrui.ren <mingrui.ren@bst.ai>2023-03-17 09:44:34 +0800
commit3d7466ef8545d37a4666e185a9f5d65ceb9c8af4 (patch)
tree0bae39fe9671ab7d3f96cd2d2563325d52a5d4d9
parentbca0412843fa650c749128ade03f35ab3e8fe2b9 (diff)
downloadpciutils-3d7466ef8545d37a4666e185a9f5d65ceb9c8af4.tar.gz
Makefile: change STRIP to '--strip-program' when cross-compile
When cross-compile, we should use specific strip instead of default /usr/bin/strip. reference:https://man7.org/linux/man-pages/man1/install.1.html Signed-off-by: mingrui.ren <mingrui.ren@bst.ai>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3df076d..9431461 100644
--- 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