Date: Tue, 11 Apr 2000 16:50:44 -0400 Message-Id: <200004112050.QAA23840@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <0755aefe.5d9e585f@usw-ex0101-007.remarq.com> (message from Clemens Valens on Tue, 11 Apr 2000 02:48:00 -0700) Subject: Re: stripping libraries References: <0755aefe DOT 5d9e585f AT usw-ex0101-007 DOT remarq DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Libraries contain a number of objects, and even if your program only needs a few symbols, it's likely that objects in the libraries need symbols from each other to link together. Maybe what you want to do is link all your objects into a single monolithic object, rather than a library? Then you can delete symbols you don't want. Also, keep in mind that some of those symbols are needed for your objects to link against the C library. The -s switch doesn't affect compiling, only linking.