From 3d7466ef8545d37a4666e185a9f5d65ceb9c8af4 Mon Sep 17 00:00:00 2001 From: "mingrui.ren" Date: Fri, 17 Mar 2023 09:44:34 +0800 Subject: [PATCH] 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 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2