From 79ee7c50e2193bfbba5e3b7ac959e3dd76c61e82 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 17 Dec 2018 09:03:13 +0100 Subject: [PATCH] Fix abspath call when output directory is specified with O= and SRCDIR is not set. --- Make.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Make.inc b/Make.inc index 81ff923156ed8..7846a5f89f2d6 100644 --- a/Make.inc +++ b/Make.inc @@ -96,7 +96,7 @@ ARCH:= ifeq ($(BUILDROOT),) ifeq ("$(origin O)", "command line") BUILDROOT := $(abspath $O) - BUILDDIR := $(abspath $(BUILDROOT)/$(shell $(JULIAHOME)/contrib/relative_path.sh $(JULIAHOME) $(SRCDIR))) + BUILDDIR := $(abspath $(BUILDROOT)/$(shell $(JULIAHOME)/contrib/relative_path.sh $(JULIAHOME) $(abspath $(dir $(lastword $(MAKEFILE_LIST)))))) $(info $(shell printf '\033[32;1mBuilding into $(BUILDROOT)\033[0m')) # use printf to expand the escape sequences else BUILDROOT:=$(JULIAHOME)