From: Alan T. DeKok Date: Mon, 24 Apr 2023 14:35:50 +0000 (-0400) Subject: use ${top_srcdir} instead of ${PWD}. Fixes #4977 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1172f620be1a16f784fdd481a0cf21aa2cb31684;p=thirdparty%2Ffreeradius-server.git use ${top_srcdir} instead of ${PWD}. Fixes #4977 --- diff --git a/scripts/boiler.mk b/scripts/boiler.mk index 7f69fbafc5c..560c61d52ff 100644 --- a/scripts/boiler.mk +++ b/scripts/boiler.mk @@ -316,7 +316,7 @@ endef # top-level directory, the canonical form is the absolute path (i.e. from # the root of the filesystem) also without "./" or "../" sequences. define CANONICAL_PATH -$(patsubst $(PWD)/%,%,$(patsubst ${CURDIR}/%,%,$(abspath ${1}))) +$(patsubst ${top_srcdir}/%,%,$(patsubst ${CURDIR}/%,%,$(abspath ${1}))) endef # COMPILE_C_CMDS - Commands for compiling C source code.