faq.html: Added section 3.6, reducing binary size

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2001-01-09 17:40:56 +00:00
parent bbebec6871
commit 2c4feca17f
2 changed files with 33 additions and 4 deletions

View File

@ -2,6 +2,9 @@ CVS code -
- configure.in: - configure.in:
- Fix for _use_keypad check breaking slang support (Christian - Fix for _use_keypad check breaking slang support (Christian
Weisgerber). Weisgerber).
- faq.html:
- Added some info on making the binary smaller with the configure
script.
- files.c: - files.c:
real_dir_from_tilde() real_dir_from_tilde()
- Oops, fix case where buf ="~", silly crash (bug discovered by - Oops, fix case where buf ="~", silly crash (bug discovered by

View File

@ -48,7 +48,9 @@ THE HECK DO I DO NOW?</a></font>
<br><font color="#330000"><a href="#3.4">3.4. I get errors about 'bindtextdomain', <br><font color="#330000"><a href="#3.4">3.4. I get errors about 'bindtextdomain',
'gettext' and/or 'gettextdomain'.&nbsp; What can I do about it?</a></font> 'gettext' and/or 'gettextdomain'.&nbsp; What can I do about it?</a></font>
<br><font color="#330000"><a href="#3.5">3.5. Nano should automatically <br><font color="#330000"><a href="#3.5">3.5. Nano should automatically
run strip on the binary when installing it!</a></font></blockquote> run strip on the binary when installing it!</a></font>
<br><font color="#330000"><a href="#3.6">3.6. How can I make the
executable smaller? This is too bloated!</a></font></blockquote>
<h2> <h2>
<font color="#330000"><a href="#4">4. Running</a></font></h2> <font color="#330000"><a href="#4">4. Running</a></font></h2>
@ -310,7 +312,8 @@ try this:</font>
<p><font color="#330000">(again, where x.y.z is the version number in question).&nbsp; <p><font color="#330000">(again, where x.y.z is the version number in question).&nbsp;
Then you need to run configure with any options you might want (if any).</font> Then you need to run configure with any options you might want (if any).</font>
<p><font color="#330000">The average case is this:</font> <p><font color="#330000">The average case is this:</font>
<p><b><font color="#330000">./configure</font></b> <p><b><font color="#330000">cd nano-x.y.z/</font></b>
<br><b><font color="#330000">./configure</font></b>
<br><b><font color="#330000">make</font></b> <br><b><font color="#330000">make</font></b>
<br><font color="#330000"><b>make install </b>(as root, of course)</font></blockquote> <br><font color="#330000"><b>make install </b>(as root, of course)</font></blockquote>
@ -340,8 +343,31 @@ run strip on the binary when installing it!</font></h2>
<b>make install-strip</b>. The default make install does not, and will <b>make install-strip</b>. The default make install does not, and will
not, run strip automatically.</font></blockquote> not, run strip automatically.</font></blockquote>
<hr WIDTH="100%"> <h2>
<h1> <a NAME="3.6"></a><font color="#330000">
3.6. How can I make the executable smaller? This is too
bloated!</font></h2>
<blockquote><font color="#330000">Actually, there are several parts of the
editor that can be disabled. You can pass arguments to the
<b>configure</b> script that disable certain features. Here's a brief
list:
<pre>
<b>--disable-tabcomp</b> Disables tab completion code for a smaller binary
<b>--disable-justify</b> Disable justify/unjustify function
<b>--disable-speller</b> Disables spell checker function
<b>--disable-help</b> Disables help function (^G)
<b>--disable-browser</b> Disables mini file browser
</pre><br>
There's also the <b>--enable-tiny</b> option which disabled everything
above, as well as some larger chunks of the program (like the marker code
that you use Control-^ to select with). Also, if you know you aren't
going to be using other languages you can use <b>--disable-nls</b> to
disable internationalization and save a few K to a few dozen K depending
on if you have locale support on your system. And finally there's always
good old <b>strip</b> to strip all debugging code and code that exists in
libraries on your system.
</font></blockquote> <hr WIDTH="100%"> <h1>
<a NAME="4"></a><font color="#330000">4. Running</font></h1> <a NAME="4"></a><font color="#330000">4. Running</font></h1>
<h2> <h2>