git: 55850d2b5118 - stable/12 - Makefile: add a small blurb about building with gcc xtoolchain
Kyle Evans
kevans at FreeBSD.org
Sun Jan 24 03:20:21 UTC 2021
The branch stable/12 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=55850d2b511881dc0ad88da904ffc1d0cbe9e52a
commit 55850d2b511881dc0ad88da904ffc1d0cbe9e52a
Author: Kyle Evans <kevans at FreeBSD.org>
AuthorDate: 2020-10-16 15:16:23 +0000
Commit: Kyle Evans <kevans at FreeBSD.org>
CommitDate: 2021-01-24 03:19:37 +0000
Makefile: add a small blurb about building with gcc xtoolchain
The key details are to install the appropriate flavor of devel/freebsd-gcc6
and pass CROSS_TOOLCHAIN while building.
(cherry picked from commit 5f2aaba4532c713f74279f0e83208c97af3a3e69)
(cherry picked from commit cf82304d7d5e8d9433d46cbdf2db8c2576b85edd)
---
Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Makefile b/Makefile
index 30c162f2778a..21ce26f215c9 100644
--- a/Makefile
+++ b/Makefile
@@ -86,6 +86,17 @@
# 10. `reboot'
# 11. `make delete-old-libs' (in case no 3rd party program uses them anymore)
#
+# For individuals wanting to build from source with GCC from ports, first
+# install the appropriate GCC cross toolchain package:
+# `pkg install ${TARGET_ARCH}-gccN`
+#
+# Once you have installed the necessary cross toolchain, simply pass
+# CROSS_TOOLCHAIN=${TARGET_ARCH}-gccN while building with the above steps,
+# e.g., `make buildworld CROSS_TOOLCHAIN=amd64-gcc6`.
+#
+# The ${TARGET_ARCH}-gccN packages are provided as flavors of the
+# devel/freebsd-gccN ports.
+#
# See src/UPDATING `COMMON ITEMS' for more complete information.
#
# If TARGET=machine (e.g. powerpc, sparc64, ...) is specified you can
More information about the dev-commits-src-all
mailing list