]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use ${top_srcdir} instead of ${PWD}. Fixes #4977
authorAlan T. DeKok <aland@freeradius.org>
Mon, 24 Apr 2023 14:35:50 +0000 (10:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 24 Apr 2023 14:35:50 +0000 (10:35 -0400)
scripts/boiler.mk

index 7f69fbafc5c86e4e01fdccec2dc84b0ceedb331d..560c61d52ff3d0d992536deaf42e3926123235c0 100644 (file)
@@ -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.