Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148486858
D37983.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37983.diff
View Options
diff --git a/tools/build/Makefile b/tools/build/Makefile
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -323,7 +323,7 @@
host-symlinks:
@echo "Linking host tools into ${DESTDIR}/bin"
.for _tool in ${_host_tools_to_symlink}
- @export PATH=$${PATH}:/usr/local/bin; \
+ @export PATH=$${PATH}:/usr/local/bin:${SYMLINK_BINDIR}; \
source_path=`which ${_tool} || echo /dev/null/no/such`; \
if [ ! -e "$${source_path}" ] ; then \
echo "Cannot find host tool '${_tool}' in PATH ($$PATH)." >&2; false; \
diff --git a/tools/build/make.py b/tools/build/make.py
--- a/tools/build/make.py
+++ b/tools/build/make.py
@@ -155,6 +155,10 @@
help="Directory to look for cc/c++/cpp/ld to build "
"target binaries (only needed if XCC/XCPP/XLD "
"are not set)")
+ parser.add_argument("--symlink-bindir",
+ help="Directory to look for host binaries when "
+ "symlinking into MAKEOBJDIRPREFIX during "
+ "host-symlinks")
parser.add_argument("--cross-compiler-type", choices=("clang", "gcc"),
default="clang",
help="Compiler type to find in --cross-bindir (only "
@@ -261,6 +265,9 @@
if not want_clean.lower().startswith("y"):
bmake_args.append("-DWITHOUT_CLEAN")
+ if parsed_args.symlink_bindir:
+ bmake_args.append("SYMLINK_BINDIR=" + parsed_args.symlink_bindir)
+
env_cmd_str = " ".join(
shlex.quote(k + "=" + v) for k, v in new_env_vars.items())
make_cmd_str = " ".join(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 5:08 AM (16 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29948156
Default Alt Text
D37983.diff (1 KB)
Attached To
Mode
D37983: Add --symlink-bindir flag to make.py build tool
Attached
Detach File
Event Timeline
Log In to Comment