View | Details | Raw Unified | Return to bug 151953
Collapse All | Expand All

(-)book.sgml (-10 / +16 lines)
Lines 4106-4111 Link Here
4106
	  </listitem>
4106
	  </listitem>
4107
4107
4108
	  <listitem>
4108
	  <listitem>
4109
	    <para><makevar>INSTALL_LIB</makevar> is a command to install
4110
	      shared libraries.</para>
4111
	  </listitem>
4112
4113
	  <listitem>
4109
	    <para><makevar>INSTALL_KLD</makevar> is a command to install
4114
	    <para><makevar>INSTALL_KLD</makevar> is a command to install
4110
	      kernel loadable modules. Some architectures don't like it when
4115
	      kernel loadable modules. Some architectures don't like it when
4111
	      the modules are stripped, therefor use this command instead
4116
	      the modules are stripped, therefor use this command instead
Lines 4129-4146 Link Here
4129
      </sect2>
4134
      </sect2>
4130
4135
4131
      <sect2 id="install-strip">
4136
      <sect2 id="install-strip">
4132
	<title>Stripping Binaries</title>
4137
	<title>Stripping binaries and shared libraries</title>
4133
4138
4134
	<para>Do not strip binaries manually unless you have to.  All binaries
4139
	<para>Do not strip binaries manually unless you have to.  All binaries
4135
	  should be stripped, but the <maketarget>INSTALL_PROGRAM</maketarget>
4140
	  should be stripped, but the <makevar>INSTALL_PROGRAM</makevar> macro
4136
	  macro will install and strip a binary at the same time (see the next
4141
	  will install and strip a binary at the same time (see the next
4137
	  section).</para>
4142
	  section). The <makevar>INSTALL_LIB</makevar> macro does the same thing
4138
4143
	  to shared libraries.</para>
4139
	<para>If you need to strip a file, but do not wish to use the
4144
4140
	  <makevar>INSTALL_PROGRAM</makevar> macro,
4145
	<para>If you need to strip a file, but wish to use neither
4141
	  <makevar>${STRIP_CMD}</makevar> will strip your program.  This is
4146
	  <makevar>INSTALL_PROGRAM</makevar> nor <makevar>INSTALL_LIB</makevar>
4142
	  typically done within the <literal>post-install</literal>
4147
	  macros, <makevar>${STRIP_CMD}</makevar> will strip your program or
4143
	  target.  For example:</para>
4148
	  shared library.  This is typically done within the
4149
	  <maketarget>post-install</maketarget> target.  For example:</para>
4144
4150
4145
	<programlisting>post-install:
4151
	<programlisting>post-install:
4146
	${STRIP_CMD} ${PREFIX}/bin/xdl</programlisting>
4152
	${STRIP_CMD} ${PREFIX}/bin/xdl</programlisting>

Return to bug 151953