>Number:         186466
>Category:       docs
>Synopsis:       [PATCH] book.xml Stripping Binaries and Shared Libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 04 23:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
FreeBSD 9.2-RELEASE-p8 #0: Mon Sep 23 16:26:45 UTC 2013
>Description:
Here I have changed so that the user can see how to patch for striping 
executables and libraries on more than one file.

Porter's Handbook

5.15.2. Stripping Binaries and Shared Libraries
>How-To-Repeat:

>Fix:
Please commit enclosed porters-handbook_book.xml.diff

I have sent one email to freebsd-doc@ but here is newer diff. Please use only 
this.

Patch attached with submission follows:

Index: en_US.ISO8859-1/books/porters-handbook/book.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/book.xml     (revision 43779)
+++ en_US.ISO8859-1/books/porters-handbook/book.xml     (working copy)
@@ -5096,8 +5096,16 @@
          example:</para>
 
        <programlisting>post-install:
-         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl</programlisting>
+         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}</programlisting>
 
+       <para>If you need to strip more files, here shared libraries.
+        For example:</para>
+
+       <programlisting>post-install:
+        .for l in geometry media body track world
+        ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so.0
+        .endfor</programlisting>
+
        <para>Use the &man.file.1; command on the installed executable
          to check whether the binary is stripped or not.  If it does
          not say <literal>not stripped</literal>, it is stripped.


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-doc@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"

Reply via email to