summaryrefslogtreecommitdiffhomepage
path: root/src/tests/qemu/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-17 15:40:41 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-17 15:40:41 +0100
commitbb558c6450fed06408a206e353e4231d7362c170 (patch)
treee25cbf9456a2fd5840eb43b5b2639a70dfee73ce /src/tests/qemu/Makefile
parent1a097249c55f4dbede0e7a256d3c473c7effbade (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>
Diffstat (limited to 'src/tests/qemu/Makefile')
-rw-r--r--src/tests/qemu/Makefile3
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)