emacs-devel
[Top][All Lists]
Advanced

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

Re: Building on Mac (Intel) [patch]


From: David Reitter
Subject: Re: Building on Mac (Intel) [patch]
Date: Tue, 7 Feb 2006 11:13:54 +0000

On 6 Feb 2006, at 16:19, Nozomu Ando wrote:

David Reitter <address@hidden> writes:
unexec: not enough room for load commands for new __DATA segments

There are too many segments to dump. You should increase
 `-headerpad -Xlinker ' parameter of LD_SWITCH_SYSTEM_TEMACS
 in src/s/darwin.h

Fantastic, this did the trick. Thanks.
It compiles fine now with the below patch plus the patch that I posted earlier.

I haven't tested the resulting .app, but in a Terminal with -nw, things look normal. It's nice and fast.


diff -c -r1.25 darwin.h
*** src/s/darwin.h      13 Nov 2005 05:47:10 -0000      1.25
--- src/s/darwin.h      7 Feb 2006 11:07:00 -0000
***************
*** 274,282 ****

  /* The -headerpad option tells ld (see man page) to leave room at the
     end of the header for adding load commands.  Needed for dumping.
!    0x690 is the total size of 30 segment load commands (at 56
     each).  */
! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker - headerpad -Xlinker 690

  #define C_SWITCH_SYSTEM_TEMACS -Dtemacs

--- 274,282 ----

  /* The -headerpad option tells ld (see man page) to leave room at the
     end of the header for adding load commands.  Needed for dumping.
!    0x8C0 is the total size of 40 segment load commands (at 56
     each).  */
! #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker - headerpad -Xlinker 8C0

  #define C_SWITCH_SYSTEM_TEMACS -Dtemacs









reply via email to

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