From e122a986a4261bf6ef0bc38af356e6cb2ea92a8c Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 5 May 2019 20:47:12 +0100 Subject: Fix relying on PWD being set in the makefile. This may not be set in some circumstances. --- make/template/main.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make/template') diff --git a/make/template/main.mk b/make/template/main.mk index ef5e8c1ab..e39a24f87 100644 --- a/make/template/main.mk +++ b/make/template/main.mk @@ -32,7 +32,7 @@ CXX = @CXX@ COMPILER = @COMPILER_NAME@ SYSTEM = @SYSTEM_NAME@ -BUILDPATH ?= $(PWD)/build +BUILDPATH ?= $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/build SOCKETENGINE = @SOCKETENGINE@ CORECXXFLAGS = -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pipe -Iinclude -Wall -Wextra -Wfatal-errors -Wno-unused-parameter -Wshadow LDLIBS = -lstdc++ -- cgit v1.2.3