From fb4767723511ec767c7a9285d3cf96202ea09aed Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Fri, 28 Apr 2023 07:44:14 +0900 Subject: [PATCH] Doc: Add example of --enable-lto build option with LLVM --- doc/admin-guide/installation/index.en.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/admin-guide/installation/index.en.rst b/doc/admin-guide/installation/index.en.rst index 20dce5c220b..b3fa4e843df 100644 --- a/doc/admin-guide/installation/index.en.rst +++ b/doc/admin-guide/installation/index.en.rst @@ -170,6 +170,11 @@ working copy:: ./configure --prefix=/opt/ats --with-pcre=/opt/csw/include:/opt/csw/lib/amd64 + If you build |TS| with LLVM toolchain installed in optional path, you need to specify + all of them explicitly in some cases. - e.g. ThinLTO by ``--enable-lto``:: + + ./configure --prefix=/opt/ats --enable-lto CC=/opt/bin/clang CXX=/opt/bin/clang++ LD=/opt/bin/ld.lld AR=/opt/bin/llvm-ar NM=/opt/bin/llvm-nm RANLIB=/opt/bin/llvm-ranlib + #. Once the source tree has been configured, you may proceed on to building with the generated Makefiles. The ``make check`` command may be used to perform sanity checks on the resulting build, prior to installation, and it is