aboutsummaryrefslogtreecommitdiffstats
path: root/docs/GoldPlugin.html
diff options
context:
space:
mode:
authorEdwin Török <edwintorok@gmail.com>2009-06-04 16:08:10 +0000
committerEdwin Török <edwintorok@gmail.com>2009-06-04 16:08:10 +0000
commitb659a3b164a704c9a9faa385f9f5592f484aa5a1 (patch)
treef19f66ccf7a3002283bd36e9d898c906f2eb4bd6 /docs/GoldPlugin.html
parenta73e548fd766cfb84b8ed10f349a3b1be12a4fe9 (diff)
downloadexternal_llvm-b659a3b164a704c9a9faa385f9f5592f484aa5a1.zip
external_llvm-b659a3b164a704c9a9faa385f9f5592f484aa5a1.tar.gz
external_llvm-b659a3b164a704c9a9faa385f9f5592f484aa5a1.tar.bz2
--plugin is not needed for bfd anymore. Update docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/GoldPlugin.html')
-rw-r--r--docs/GoldPlugin.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/GoldPlugin.html b/docs/GoldPlugin.html
index 6be5277..17a50ac 100644
--- a/docs/GoldPlugin.html
+++ b/docs/GoldPlugin.html
@@ -153,12 +153,21 @@ $ llvm-gcc -use-gold-plugin a.o b.o -o main # &lt;-- link with LLVMgold plugin
<pre class="doc_code">
export CC="$PREFIX/bin/llvm-gcc -use-gold-plugin"
export CXX="$PREFIX/bin/llvm-g++ -use-gold-plugin"
-export AR="$PREFIX/bin/ar --plugin libLLVMgold.so"
-export NM="$PREFIX/bin/nm --plugin libLLVMgold.so"
+export AR="$PREFIX/bin/ar"
+export NM="$PREFIX/bin/nm"
export RANLIB=/bin/true #ranlib is not needed, and doesn't support .bc files in .a
export CFLAGS="-O4"
</pre>
</li>
+ <li>Or you can just set your path:
+ <pre class="doc_code">
+export PATH="$PREFIX/bin:$PATH"
+export CC="llvm-gcc -use-gold-plugin"
+export CXX="llvm-g++ -use-gold-plugin"
+export RANLIB=/bin/true
+export CFLAGS="-O4"
+ </pre>
+ </li>
<li>Configure &amp; build the project as usual: <tt>./configure &amp;&amp; make &amp;&amp; make check</tt> </li>
</ul>
<p> The environment variable settings may work for non-autotooled projects