From: mingrui.ren Date: Fri, 17 Mar 2023 01:44:34 +0000 (+0800) Subject: Makefile: change STRIP to '--strip-program' when cross-compile X-Git-Tag: v3.10.0~3^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3d7466ef8545d37a4666e185a9f5d65ceb9c8af4;p=pciutils.git 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 --- 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