bug-bash
[Top][All Lists]
Advanced

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

Re: Cross compile crapout


From: Chet Ramey
Subject: Re: Cross compile crapout
Date: Tue, 24 Jan 2012 11:52:04 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 1/24/12 10:08 AM, Jonathan Andrews wrote:

> Also from previous builds:
> 
> bash-4.2/bashline.c:2105: warning: Using 'endservent' in statically linked 
> applications requires at runtime the shared libraries from the glibc version 
> used for linking
> 
> WTF ! Words fail me, I bet some c++ lover has made this mess for
> me ..... I feel so old..... take me back to 1986, a happy time ....
> 
> Is it even possible to build a statically linked bash?
> I've done it before but that was in the land time forget, around kernel
> 2.4.24, when gcc started with a "3." and worked :-( ggrrrrr

It's possible but has varying degrees of difficulty on different systems.
It's not possible at all on Mac OS X, requires a mix of static and
dynamic linking on Solaris and Linux, and is probably possible (though I
have not tried recently) on the BSDs.

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



reply via email to

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