diff --git a/mk/config.mk b/mk/config.mk index 6f9cefb0..1dc21d9b 100644 --- a/mk/config.mk +++ b/mk/config.mk @@ -37,11 +37,15 @@ CONTAINERFILE?=podman/redox-base-containerfile # Per host variables export NPROC=nproc export REDOX_MAKE=make + +ifneq ($(PODMAN_BUILD),1) HOST_TARGET := $(shell env -u RUSTUP_TOOLCHAIN rustc -vV | grep host | cut -d: -f2 | tr -d " ") ifneq ($(HOST_TARGET),x86_64-unknown-linux-gnu) # The binary prefix is only built for x86_64 Linux hosts PREFIX_BINARY=0 endif +endif + UNAME := $(shell uname) ifeq ($(UNAME),Darwin) FUMOUNT=umount @@ -65,13 +69,6 @@ else VBM=VBoxManage endif -ifneq ($(UNAME),Linux) - PREFIX_BINARY=0 -endif -ifneq ($(HOST_ARCH),x86_64) - PREFIX_BINARY=0 -endif - # Automatic variables ROOT=$(CURDIR) export RUST_COMPILER_RT_ROOT=$(ROOT)/rust/src/llvm-project/compiler-rt