Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2021 03:20:20 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 55850d2b5118 - stable/12 - Makefile: add a small blurb about building with gcc xtoolchain
Message-ID:  <202101240320.10O3KKQx036538@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=55850d2b511881dc0ad88da904ffc1d0cbe9e52a

commit 55850d2b511881dc0ad88da904ffc1d0cbe9e52a
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2020-10-16 15:16:23 +0000
Commit:     Kyle Evans <kevans@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101240320.10O3KKQx036538>