X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FGoldPlugin.rst;h=6328934b37b344e37a879bf4fdee02a4df392ba4;hb=6bd362c2d9d3e3284708ba5e55d8f3ccf7493313;hp=28b202adf08480e2fa488ffdd5f034aa57257860;hpb=bc134cb1f18e6870ccebbf03e40b7de11f274644;p=oota-llvm.git diff --git a/docs/GoldPlugin.rst b/docs/GoldPlugin.rst index 28b202adf08..6328934b37b 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 =====