|
Lines 5096-5106
Link Here
|
| 5096 |
example:</para> |
5096 |
example:</para> |
| 5097 |
|
5097 |
|
| 5098 |
<programlisting>post-install: |
5098 |
<programlisting>post-install: |
| 5099 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl</programlisting> |
5099 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}</programlisting> |
| 5100 |
|
5100 |
|
| 5101 |
<para>Use the &man.file.1; command on the installed executable |
5101 |
<para>When more than one file needs to be stripped, like several |
| 5102 |
to check whether the binary is stripped or not. If it does |
5102 |
shared libraries, loop through them:</para> |
| 5103 |
not say <literal>not stripped</literal>, it is stripped. |
5103 |
|
|
|
5104 |
<programlisting>post-install: |
| 5105 |
.for l in geometry media body track world |
| 5106 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so.0 |
| 5107 |
.endfor</programlisting> |
| 5108 |
|
| 5109 |
<para>Use &man.file.1; on the installed executable |
| 5110 |
to check whether it has been stripped. |
| 5111 |
Binaries that have not been stripped will be reported by &man.file.1; |
| 5112 |
as <literal>not stripped</literal>. |
| 5104 |
Additionally, &man.strip.1; will not strip a previously |
5113 |
Additionally, &man.strip.1; will not strip a previously |
| 5105 |
stripped program; it will instead exit cleanly.</para> |
5114 |
stripped program; it will instead exit cleanly.</para> |
| 5106 |
</sect2> |
5115 |
</sect2> |