[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Mac port
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: Emacs Mac port |
Date: |
Thu, 20 Sep 2012 17:51:44 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Mon, 27 Aug 2012 16:40:10 +0900, YAMAMOTO Mitsuharu <address@hidden>
>>>>> said:
> The second update of Emacs 24 Mac port 3.x is available from
> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-24.2-mac-3.2.tar.gz
> This version is based on Emacs 24.2.
> The third update of Emacs 23 Mac port 2.x is also available from
> ftp://ftp.math.s.chiba-u.ac.jp/emacs/emacs-23.4-mac-2.3.tar.gz
If you build them with the Command Line Tools for Xcode 4.5 (on both
Lion and Mountain Lion) that has just been released, then it might be
better to apply the following patch that I've just installed to the
emacs-24 branch. I don't know if there's a real problem without this
patch, but just in case...
YAMAMOTO Mitsuharu
address@hidden
=== modified file 'src/unexmacosx.c'
*** src/unexmacosx.c 2012-08-27 08:21:38 +0000
--- src/unexmacosx.c 2012-09-20 08:32:27 +0000
***************
*** 117,122 ****
--- 117,129 ----
#include <assert.h>
+ /* LC_DATA_IN_CODE is not defined in mach-o/loader.h on OS X 10.7.
+ But it is used if we build with "Command Line Tools for Xcode 4.5
+ (OS X Lion) - Septemper 2012". */
+ #ifndef LC_DATA_IN_CODE
+ #define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */
+ #endif
+
#ifdef _LP64
#define mach_header mach_header_64
#define segment_command segment_command_64
***************
*** 614,619 ****
--- 621,631 ----
printf ("LC_MAIN ");
break;
#endif
+ #ifdef LC_DATA_IN_CODE
+ case LC_DATA_IN_CODE:
+ printf ("LC_DATA_IN_CODE ");
+ break;
+ #endif
#ifdef LC_SOURCE_VERSION
case LC_SOURCE_VERSION:
printf ("LC_SOURCE_VERSION");
***************
*** 1217,1225 ****
#endif
#ifdef LC_FUNCTION_STARTS
! /* Copy a LC_FUNCTION_STARTS/LC_DYLIB_CODE_SIGN_DRS load command from
! the input file to the output file, adjusting the data offset
! field. */
static void
copy_linkedit_data (struct load_command *lc, long delta)
{
--- 1229,1237 ----
#endif
#ifdef LC_FUNCTION_STARTS
! /* Copy a LC_FUNCTION_STARTS/LC_DATA_IN_CODE/LC_DYLIB_CODE_SIGN_DRS
! load command from the input file to the output file, adjusting the
! data offset field. */
static void
copy_linkedit_data (struct load_command *lc, long delta)
{
***************
*** 1317,1322 ****
--- 1329,1337 ----
#endif
#ifdef LC_FUNCTION_STARTS
case LC_FUNCTION_STARTS:
+ #ifdef LC_DATA_IN_CODE
+ case LC_DATA_IN_CODE:
+ #endif
#ifdef LC_DYLIB_CODE_SIGN_DRS
case LC_DYLIB_CODE_SIGN_DRS:
#endif