diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-17 15:40:41 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-17 15:40:41 +0100 |
commit | bb558c6450fed06408a206e353e4231d7362c170 (patch) | |
tree | e25cbf9456a2fd5840eb43b5b2639a70dfee73ce | |
parent | 1a097249c55f4dbede0e7a256d3c473c7effbade (diff) |
qemu: use unprefixed strip when not cross-compiling
Fedora/Redhat doesn't ship with a prefixed strip, and we don't need to
use it anyway when we're not cross compiling, so don't.
Reported-by: Samuel Neves <sneves@dei.uc.pt>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/tests/qemu/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 513ed5a..32c0cf1 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -62,10 +62,12 @@ export CPPFLAGS := -I$(BUILD_PATH)/include ifeq ($(CHOST),$(CBUILD)) CROSS_COMPILE_FLAG := --host=$(CHOST) CFLAGS += -march=native +STRIP := strip else $(info Cross compilation: building for $(CBUILD) using $(CHOST)) CROSS_COMPILE_FLAG := --build=$(CBUILD) --host=$(CHOST) export CROSS_COMPILE=$(CBUILD)- +STRIP := $(CBUILD)-strip endif ifeq ($(ARCH),aarch64) QEMU_ARCH := aarch64 @@ -155,7 +157,6 @@ else $(error I only build: x86_64, i686, arm, aarch64, mips, mipsel, mips64, mips64el) endif -STRIP := $(CBUILD)-strip REAL_CC := $(CBUILD)-gcc MUSL_CC := $(BUILD_PATH)/musl-gcc export CC := $(MUSL_CC) |