summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2023-05-01 15:44:40 +0200
committerMartin Mares <mj@ucw.cz>2023-05-01 15:44:40 +0200
commit0766bfa0f557430a6dd3256d45a5b756499f9f7b (patch)
treec184e66d5992e1311a922c2455ab8d64467a92d7
parent21407521fb62a65e39051561e16e4ce1a74362c1 (diff)
downloadpciutils-master.tar.gz
Fix stripping in cross-compiling modeHEADmaster
Fixes 3d7466ef8545d37a4666e185a9f5d65ceb9c8af4.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 608d3ee..0e878a6 100644
--- a/Makefile
+++ b/Makefile
@@ -45,11 +45,11 @@ PKGCFDIR=$(LIBDIR)/pkgconfig
# Commands
INSTALL=install
DIRINSTALL=install -d
+STRIP=-s
ifdef CROSS_COMPILE
-STRIP=--strip-program $(CROSS_COMPILE)-strip
+STRIP+=--strip-program $(CROSS_COMPILE)strip
CC=$(CROSS_COMPILE)gcc
else
-STRIP=-s
CC=cc
endif
AR=$(CROSS_COMPILE)ar