help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: in bash devel tree , how to make it build static bash


From: Chet Ramey
Subject: Re: in bash devel tree , how to make it build static bash
Date: Fri, 30 Jun 2023 14:26:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 6/30/23 1:52 PM, Emanuele Torre wrote:
On Fri, Jun 30, 2023 at 12:35:32PM -0400, Chet Ramey wrote:
On 6/29/23 6:32 PM, Emanuele Torre wrote:
On Fri, Jun 30, 2023 at 12:10:28AM +0200, alex xmb ratchev wrote:
.. whats the right way to produce a static bash build ?

    $ ./configure --enable-static-link LDFLAGS=-static

The LDFLAGS assignment shouldn't be necessary.

It is necessary. For some reason, --enable-static-link does not add
-static to LDFLAGS on linux when using GCC even though it is required:

Ah, linux. Can't profile with static linking (well, maybe you can now).
Just need to check for profiling and static linking together.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]