Changeset 7773 in project


Ignore:
Timestamp:
01/18/08 05:14:17 (12 years ago)
Author:
Jim Ursetto
Message:

Enable universal binary support on OS X

Location:
chicken/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/Makefile.macosx

    r7044 r7773  
    3333# Germany
    3434
    35 
    3635# platform configuration
    3736
     
    4039# commands
    4140
    42 POSTINSTALL_STATIC_LIBRARY = ranlib
    4341POSTINSTALL_PROGRAM = install_name_tool
    4442
     
    5149C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
    5250endif
    53 LINKER_LINK_SHARED_LIBRARY_OPTIONS = -dynamiclib -compatibility_version 1 -current_version 1.0
     51LINKER_LINK_SHARED_LIBRARY_OPTIONS = -dynamiclib -compatibility_version 1 -current_version 1.0 -install_name $@
    5452POSTINSTALL_PROGRAM_FLAGS = -change libchicken$(SO) $(LIBDIR)/libchicken$(SO)
    55 
    56 ifeq ($(ARCH),x86-64)
    57 C_COMPILER_OPTIONS += -m64
    58 LINKER_OPTIONS += -m64
    59 endif
     53LIBRARIAN_OPTIONS = scru
    6054
    6155# file extensions
     
    111105        cat chicken-defaults.h >>$@
    112106
     107# architectures
     108
     109ifeq ($(ARCH),x86-64)
     110C_COMPILER_OPTIONS += -m64
     111LINKER_OPTIONS += -m64
     112else
     113
     114ifeq ($(ARCH),universal)
     115C_COMPILER_OPTIONS += -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
     116LINKER_OPTIONS += -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
     117
     118ifdef HACKED_APPLY
     119# We undefine HACKED_APPLY in order to override rules.make.
     120HACKED_APPLY=
     121apply-hack.ppc.darwin$(O): apply-hack.ppc.darwin.s
     122        as -arch ppc -o $@ $<
     123apply-hack.x86$(O): apply-hack.x86.s
     124        as -arch i386 -o $@ $<
     125$(APPLY_HACK_OBJECT): apply-hack.x86$(O) apply-hack.ppc.darwin$(O)
     126        lipo -create -output $(APPLY_HACK_OBJECT) $^
     127endif
     128
     129endif
     130endif
     131
    113132include rules.make
  • chicken/trunk/README

    r7764 r7773  
    257257            http://www.opendarwin.org/projects/dlcompat
    258258
     259        - On Mac OS X, Chicken and its eggs can be built as universal
     260          binaries which will work on either Intel or PowerPC.
     261
     262            make PLATFORM=macosx ARCH=universal
     263
    259264        - On Mac OS X, Chicken can be built in 64-bit mode on Intel
    260265          Core 2 Duo systems--basically, most recent machines.  The default
Note: See TracChangeset for help on using the changeset viewer.