Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163546853
D57769.id181471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
D57769.id181471.diff
View Options
Index: tools/build/Makefile
===================================================================
--- tools/build/Makefile
+++ tools/build/Makefile
@@ -466,6 +466,18 @@
.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, also add the link target.
+_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_symlink_target:M/*} && \
+ !${_toolchain_tools_to_symlink:U:M${_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, 8:35 AM (3 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35468871
Default Alt Text
D57769.id181471.diff (833 B)
Attached To
Mode
D57769: tools/build: Include build tool symlink targets
Attached
Detach File
Event Timeline
Log In to Comment