From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Building without Emacs malloc, possible? Date: Fri, 23 Feb 2007 00:17:36 +0000 Message-ID: <45DE32A0.40807@gnu.org> References: <45DCAC15.40305@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172189901 11197 80.91.229.12 (23 Feb 2007 00:18:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 00:18:21 +0000 (UTC) Cc: =?ISO-8859-1?Q?Jan_Dj=E4rv?= , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 23 01:18:11 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKO8Y-0006zz-Un for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 01:18:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKO8Y-0007Ry-C9 for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 19:18:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKO84-0007KC-Gb for emacs-devel@gnu.org; Thu, 22 Feb 2007 19:17:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKO82-0007Jb-Vh for emacs-devel@gnu.org; Thu, 22 Feb 2007 19:17:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKO82-0007JV-Rk for emacs-devel@gnu.org; Thu, 22 Feb 2007 19:17:38 -0500 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HKO82-0003bN-AX for emacs-devel@gnu.org; Thu, 22 Feb 2007 19:17:38 -0500 Original-Received: from wanchan.jasonrumney.net (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id D8DF150D64; Fri, 23 Feb 2007 00:17:36 +0000 (GMT) Original-Received: from [127.0.0.1] (jason-me2b.jasonrumney.net [192.168.249.28]) by wanchan.jasonrumney.net (Postfix) with ESMTP id AB1981AE; Fri, 23 Feb 2007 00:17:36 +0000 (GMT) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66654 Archived-At: Stefan Monnier wrote: > BTW, isn't the problem that Emacs uses `posix_memalign' because it's found > in libc, even though its own malloc doesn't provide it? > For that to only happen when GTK is included, posix_memalign would have to be exported by the GTK libraries, not by the standard libraries. I think the original diagnosis is right. Windows DLLs are linked to any libraries they need at build time, so functions like malloc cannot be overridden by the calling program.