Changeset 10576


Ignore:
Timestamp:
Aug 28, 2008, 11:51:45 AM (11 years ago)
Author:
gb
Message:

Makefile: build with 10.4 interfaces and -mmacosx_version_min 10.4
lisptypes.h: kludgily #define "new" -prefixed mcontext fields.

(This is what we do on other Darwin platforms; it's supposed to help
ensure that kernels built on Leopard work on Tiger, while allowing
us to eventually drop Tiger support and not have to change as much
then.)

Location:
trunk/source/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/darwinx8632/Makefile

    r10099 r10576  
    2020RM = /bin/rm
    2121LD = ld
    22 LDFLAGS = -arch i386 -dynamic  -o $@ -e start -pagezero_size 0x11000 -seg1addr 0x00011000 -sectalign __TEXT __text 0x1000
     22LDFLAGS =  -macosx_version_min 10.4 -arch i386 -dynamic  -o $@ -e start -pagezero_size 0x11000 -seg1addr 0x00011000 -sectalign __TEXT __text 0x1000
    2323AS = as
    2424M4 = gm4
     
    3232        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(ASFLAGS) -o $@
    3333.c.o:
    34         $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -o $@
     34        $(CC) -c -arch i386 $< $(CDEFINES) $(CDEBUG) $(COPT) $(MDYNAMIC_NO_PIC) -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o $@
    3535
    3636SPOBJ = x86-spjump32.o x86-spentry32.o x86-subprims32.o
  • trunk/source/lisp-kernel/lisptypes.h

    r10565 r10576  
    142142#ifdef X8632
    143143/* Assume rational <i386/ucontext.h> */
     144/* Sadly, we can't make that assumption, since Apple renamed things
     145   for Leopard. Yow!  Are we standards-compliant yet ? */
     146/* In the long term, we probably want to use the leopard-compliant
     147   names (with leading __ prefixes).  In the shorter term, we want
     148   kernels compiled on Leopard to run on Tiger (and not reference
     149   foo$UNIX2003 and similar nonsense, and that means getting the old
     150   names (without leading __ prefixes.)  Confused yet ? */
     151
     152/* #if STILL_SUPPORT_TIGER */
     153#define __ss ss
     154#define __ds ds
     155#define __es es
     156#define __cs cs
     157#define __fs fs
     158#define __gs gs
     159#define __eax eax
     160#define __esp esp
     161#define __eip eip
     162#define __eflags eflags
     163#define __fpu_xmm0 fpu_xmm0
     164#define __fpu_mxcsr fpu_mxcsr
     165#define __fpu_stmm0 fpu_stmm0
     166#define __err err
     167#define __faultvaddr faultvaddr
     168/* #endif STILL_SUPPORT_TIGER */
     169
    144170#define UC_MCONTEXT(UC) UC->uc_mcontext
    145171typedef mcontext_t MCONTEXT_T;
Note: See TracChangeset for help on using the changeset viewer.