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 1POekQ-0008Ci-NB for garchives@archives.gentoo.org; Fri, 03 Dec 2010 23:09:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56CCAE0829 for ; Fri, 3 Dec 2010 23:09:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C9463E0C7D for ; Fri, 3 Dec 2010 22:33:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 44E6C1B42D4 for ; Fri, 3 Dec 2010 22:33:01 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -2.521 X-Spam-Level: X-Spam-Status: No, score=-2.521 required=5.5 tests=[AWL=0.078, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n42YevtxF6ZL for ; Fri, 3 Dec 2010 22:32:55 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id EE0B31B4069 for ; Fri, 3 Dec 2010 22:32:54 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1POeBK-0006jh-Mv for gentoo-user@gentoo.org; Fri, 03 Dec 2010 23:32:46 +0100 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2010 23:32:46 +0100 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2010 23:32:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to build a static application binary? Date: Fri, 3 Dec 2010 22:32:33 +0000 (UTC) Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/pre0.9.9-102 (Linux) X-Archives-Salt: 690de96b-67e6-4d76-a4ab-55af50f384c2 X-Archives-Hash: 084ec231ba1a6e24011bb1b1a1eae1f0 On 2010-12-03, Jacob Todd wrote: > 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. > > Iirc there a bug in glibc that makes it almost impossible to create > static binaries with it. Yes, that's my understanding as well. Some design change somewhere between glibc4 and glibc6 makes it impossible to to static linking in any meaningful sense of the term. > 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? Yes. That's how I know it's not gcc's fault: I can build static apps with gcc/binutils using a different libc. -- Grant Edwards grant.b.edwards Yow! A shapely CATHOLIC at SCHOOLGIRL is FIDGETING gmail.com inside my costume..