blob: 8c8f2204ab098f006fc6000deac76f4c44f14679 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<h1 class="section">Compilers and Options</h1> <p>Some systems require unusual options for compilation or linking that the <code>configure</code> script does not know about. You can give <code>configure</code> initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: </p> <div class="example"> <pre class="example">CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
</pre>
</div> <p>On systems that have the <code>env</code> program, you can do it like this: </p> <div class="example"> <pre class="example">env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
</pre>
</div> <p>The configuration process uses GCC to build Bash if it is available. </p><div class="_attribution">
<p class="_attribution-p">
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>Licensed under the GNU Free Documentation License.<br>
<a href="https://www.gnu.org/software/bash/manual/html_node/Compilers-and-Options.html" class="_attribution-link">https://www.gnu.org/software/bash/manual/html_node/Compilers-and-Options.html</a>
</p>
</div>
|