diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-27 14:28:14 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-11-27 14:38:44 +0100 |
commit | bcb5513856cd7fc4ac46dc3d968391026a70d977 (patch) | |
tree | ca2b63b58494adbd338e179bfff3f439773da330 /src/tests/qemu/Makefile | |
parent | qemu: work around build bug with powerpc64le (diff) | |
download | wireguard-monolithic-historical-bcb5513856cd7fc4ac46dc3d968391026a70d977.tar.xz wireguard-monolithic-historical-bcb5513856cd7fc4ac46dc3d968391026a70d977.zip |
qemu: respect PATH when finding CBUILD
Diffstat (limited to 'src/tests/qemu/Makefile')
-rw-r--r-- | src/tests/qemu/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 02e098a..3755d01 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -6,7 +6,7 @@ PWD := $(shell pwd) CHOST := $(shell gcc -dumpmachine) ifneq (,$(ARCH)) -CBUILD := $(subst -gcc,,$(lastword $(subst /, ,$(firstword $(filter-out android,$(wildcard /usr/bin/$(ARCH)-*-gcc)))))) +CBUILD := $(subst -gcc,,$(lastword $(subst /, ,$(firstword $(filter-out android,$(wildcard $(foreach bindir,$(subst :, ,$(PATH)),$(bindir)/$(ARCH)-*-gcc))))))) endif ifeq (,$(CBUILD)) CBUILD := $(CHOST) |