Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163520977
D57769.id181465.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D57769.id181465.diff
View Options
Index: tools/build/Makefile
===================================================================
--- tools/build/Makefile
+++ tools/build/Makefile
@@ -466,6 +466,17 @@
.if !empty(${X}${var}) && !${${X}${var}:[1]:M/*} && \
!${_toolchain_tools_to_symlink:U:M${${X}${var}:[1]}}
_toolchain_tools_to_symlink+= ${${X}${var}:[1]}
+
+# If the tool exists as a symlink, include the link target as well.
+_toolchain_symlink_target!= \
+ p=$$(command -v ${${X}${var}:[1]} 2>/dev/null || true); \
+ if [ -n "$$p" ] && [ -L "$$p" ]; then \
+ readlink "$$p"; \
+ fi
+.if !empty(_toolchain_symlink_target)
+_toolchain_tools_to_symlink+= ${_toolchain_symlink_target}
+.endif
+
.endif
.endfor
.endfor
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 25, 2:11 AM (10 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35459201
Default Alt Text
D57769.id181465.diff (732 B)
Attached To
Mode
D57769: tools/build: Include build tool symlink targets
Attached
Detach File
Event Timeline
Log In to Comment