aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
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
commitcc0725039756a6c60610b5f078695f0eb4b0c462 (patch)
tree03b1f3d55466bbc4f21afdc0e49896291bcfe64b /src
parenttools: tighten up strtoul parsing (diff)
downloadwireguard-monolithic-historical-cc0725039756a6c60610b5f078695f0eb4b0c462.tar.xz
wireguard-monolithic-historical-cc0725039756a6c60610b5f078695f0eb4b0c462.zip
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>
Diffstat (limited to 'src')
-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)