From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1POZ3e-0003ge-HO for garchives@archives.gentoo.org; Fri, 03 Dec 2010 17:04:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FF44E0A10 for ; Fri, 3 Dec 2010 17:04:29 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id CFE86E0652 for ; Fri, 3 Dec 2010 16:53:12 +0000 (UTC) Received: by gxk10 with SMTP id 10so21238568gxk.40 for ; Fri, 03 Dec 2010 08:53:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:received :in-reply-to:references:date:message-id:subject:from:to:content-type; bh=bU2XEfYlgkE0tU4VGM3oHNvOTJ/TWMOJF73+qKhQNXM=; b=IpEYts8gFIuuiaV+v7W5KUpLoiKfkESLxYzAGXGvFp33zWXOUejckIZEdsyRrwo+je kzjgRCIRXBgTBKTsSoN0aR41kAA7wr2D7k9nVGbn2bGRrv+CG/hmrrymTH0iv3l8Nc+X 04nMHa+ujXzxFEPwyRZoIEOZHFNtOJ5FunivM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=AHG6SBRAU2cUjC/REoiGryGai1B/CqylqaSIZhRL4VAPv0c4TghS4MuFApC0iFaYlx jWYEs040N+EBoW7MVkXzGmsqRb/QPRQGkKlz4Z1052bac4ZmCiQVVoEAYIdDgkQN7AAB bxibbvslzbxWNMH8KL2T3CPTkczEHoMvY1/aY= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.98.203 with SMTP id r11mr2772722bkn.86.1291395191420; Fri, 03 Dec 2010 08:53:11 -0800 (PST) Received: by 10.204.74.12 with HTTP; Fri, 3 Dec 2010 08:53:11 -0800 (PST) Received: by 10.204.74.12 with HTTP; Fri, 3 Dec 2010 08:53:11 -0800 (PST) In-Reply-To: References: Date: Fri, 3 Dec 2010 11:53:11 -0500 Message-ID: Subject: Re: [gentoo-user] Re: How to build a static application binary? From: Jacob Todd To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=00163649a323a638c00496845f9f X-Archives-Salt: fa48870d-2cba-4ffb-818d-bfedf5642ea8 X-Archives-Hash: 66e3d60f1e71834f914e23fd98eefc40 --00163649a323a638c00496845f9f Content-Type: text/plain; charset=UTF-8 Iirc there a bug in glibc that makes it almost impossible to create static binaries with it. I can't look the the sources of that info atm, but it be easily found with google. Do the other platforms you use gcc to build static binaries with use a different libc? On Dec 3, 2010 11:14 AM, "Grant Edwards" wrote: > On 2010-12-03, Jacob Todd wrote: > >> Gotta love gcc! > > It's not gcc's fault. > > I use gcc on other platforms to create static binaries and don't see > any noticable overhead. > >> If you want real static binaries on a unix-ish os, use plan 9. > > Except that's not what I want. I want a static binary on Linux. > > -- > Grant Edwards grant.b.edwards Yow! My Aunt MAUREEN was a > at military advisor to IKE & > gmail.com TINA TURNER!! > > --00163649a323a638c00496845f9f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Iirc there a bug in glibc that makes it almost impossible to create stat= ic binaries with it. I can't look the the sources of that info atm, but= it be easily found with google. Do the other platforms you use gcc to buil= d static binaries with use a different libc?

On Dec 3, 2010 11:14 AM, "Grant Edwards&quo= t; <grant.b.edwards@gmail.c= om> wrote:
> On 2010-12-03, Jacob Todd &l= t;jaketodd422@gmail.com> wr= ote:
>
>> Gotta love gcc!
>
> It's not gcc's f= ault.
>
> I use gcc on other platforms to create static binari= es and don't see
> any noticable overhead.
>
>> I= f you want real static binaries on a unix-ish os, use plan 9.
>
> Except that's not what I want. I want a static binary on= Linux.
>
> --
> Grant Edwards grant.b.ed= wards Yow! My Aunt MAUREEN was a
> = at military advisor to IKE &
> gmail.com TINA TURNER!!
>
>
--00163649a323a638c00496845f9f--