[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building for release or debug
From: |
Jeffrey Walton |
Subject: |
Re: Building for release or debug |
Date: |
Tue, 10 May 2022 20:54:25 -0400 |
On Tue, May 10, 2022 at 4:29 PM Chet Ramey <chet.ramey@case.edu> wrote:
> On 5/10/22 9:42 AM, Robert E. Griffith wrote:
> > ...
> > On a different but related note, when I build my loadable builtin against
> > the headers and loadables/makefile.inc from the ubuntu bash-builtin
> > package. I still get symbols in my .so. Is there an option that I can
> > specify to make that will build a release version?
>
> So by a `release' version you mean a version without symbols? Use CFLAGS.
> If you want to strip as many debugging symbols as you can, use
> CFLAGS="-O2 -s" -- which might be overkill for a shared object -- or look
> at some of the options to `strip'.
The install-strip recipe might also work for Robert. See
https://www.gnu.org/prep/standards/standards.html#Standard-Targets
Jeff