diff options
author | mingrui.ren <mingrui.ren@bst.ai> | 2023-03-17 09:44:34 +0800 |
---|---|---|
committer | mingrui.ren <mingrui.ren@bst.ai> | 2023-03-17 09:44:34 +0800 |
commit | 3d7466ef8545d37a4666e185a9f5d65ceb9c8af4 (patch) | |
tree | 0bae39fe9671ab7d3f96cd2d2563325d52a5d4d9 | |
parent | bca0412843fa650c749128ade03f35ab3e8fe2b9 (diff) | |
download | pciutils-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |