aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-27 12:25:21 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-27 12:41:33 +0000
commitbcb7f57aa22757dd0206e88894bc003a93d0c351 (patch)
tree88aab5ac3ba0cd7af62a7b133b3468d9a5a59baf
parent7a57c9cb5a4dffb0483beeae6da7cf266ea634be (diff)
downloadsrc-bcb7f57aa22757dd0206e88894bc003a93d0c351.tar.gz
src-bcb7f57aa22757dd0206e88894bc003a93d0c351.zip
conf/kern.mk: save some work by using realpath instead of cd ; pwd
I did not check if the entire ordeal can be avoided in the first place.
-rw-r--r--sys/conf/kmod.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index c245f447cefb..c0d4441af029 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -309,7 +309,7 @@ ${_ILINKS}:
*) \
path=${SYSDIR}/${.TARGET:T}/include ;; \
esac ; \
- path=`(cd $$path && /bin/pwd)` ; \
+ path=`realpath $$path`; \
${ECHO} ${.TARGET:T} "->" $$path ; \
ln -fns $$path ${.TARGET:T}