From 9a1774b80a63922d5ea343cb4782a1226e2b7100 Mon Sep 17 00:00:00 2001 From: Jan Blunck Date: Wed, 26 Apr 2017 23:01:06 +0200 Subject: [PATCH] mk: fix external builds with relative output dir In case the output directory (O=) is undefined or a relative directory lets turn it into an absolute path before passing it on. Otherwise the output directory is created relative to the subdir, e.g. pktgen/app/build/... and pktgen/lib/lua/src/build/... Signed-off-by: Jan Blunck --- mk/rte.extsubdir.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/rte.extsubdir.mk b/mk/rte.extsubdir.mk index 3e733d826a..d21791b0c3 100644 --- a/mk/rte.extsubdir.mk +++ b/mk/rte.extsubdir.mk @@ -33,8 +33,8 @@ MAKEFLAGS += --no-print-directory ALL_DEPDIRS := $(patsubst DEPDIRS-%,%,$(filter DEPDIRS-%,$(.VARIABLES))) # output directory -O ?= . -BASE_OUTPUT ?= $(O) +O ?= $(CURDIR) +BASE_OUTPUT ?= $(abspath $(O)) CUR_SUBDIR ?= . .PHONY: all -- 2.20.1