[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling bash statically in 4.2/4.3/4.4 with GCC 6.1.0
From: |
Chet Ramey |
Subject: |
Re: Compiling bash statically in 4.2/4.3/4.4 with GCC 6.1.0 |
Date: |
Fri, 12 May 2017 14:19:06 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 5/12/17 9:55 AM, Eduardo Bustamante wrote:
> FWIW, I'm able to compile bash statically with:
>
> dualbus@debian:~/src/gnu/bash$ ./configure --enable-static-link
> --without-bash-malloc
> [...]
> dualbus@debian:~/src/gnu/bash$ make
> [...]
During which you get a million warnings about using any of the username/
group/service/hostname lookup functions in a static executable without
the dynamic libraries available.
> It fails if I try to use clang though:
[...]
> It seems to be caused by the combination of `-static' and `rdynamic'
> (from LOCAL_LDFLAGS). This "works" though:
The -rdynamic is in there to support `enable -f', though I don't know
whether it's reasonable to expect that to work when you link with the
static libraries.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/