summaryrefslogtreecommitdiff
path: root/docs/GoldPlugin.rst
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-18 16:17:27 +0000
commit67c32a98315f785a9ec9d531c1f571a0196c7463 (patch)
tree4abb9cbeecc7901726dd0b4a37369596c852e9ef /docs/GoldPlugin.rst
parent9f61947910e6ab40de38e6b4034751ef1513200f (diff)
Diffstat (limited to 'docs/GoldPlugin.rst')
-rw-r--r--docs/GoldPlugin.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/GoldPlugin.rst b/docs/GoldPlugin.rst
index 28b202adf084..6328934b37b3 100644
--- a/docs/GoldPlugin.rst
+++ b/docs/GoldPlugin.rst
@@ -44,9 +44,11 @@ will either need to build gold or install a version with plugin support.
the ``-plugin`` option. Running ``make`` will additionally build
``build/binutils/ar`` and ``nm-new`` binaries supporting plugins.
-* Build the LLVMgold plugin: Configure LLVM with
- ``--with-binutils-include=/path/to/binutils/include`` and run
- ``make``.
+* Build the LLVMgold plugin. If building with autotools, run configure with
+ ``--with-binutils-include=/path/to/binutils/include`` and run ``make``.
+ If building with CMake, run cmake with
+ ``-DLLVM_BINUTILS_INCDIR=/path/to/binutils/include``. The correct include
+ path will contain the file ``plugin-api.h``.
Usage
=====